Post #4248485
2026-07-30 18:08 UTC
@ilia@phpc.social I do not think PHPUnit should do anything here. Whatever limit is appropriate is a project- and environment-specific decision: suites that collect code coverage or run large integration tests legitimately need more memory than any default PHPUnit could pick, and getting it wrong means a fatal error that kills the whole run. PHPUnit runs arbitrary project code, so it's the least qualified party to choose that number.
Replies (1)
-
@sebastian@phpc.social 2026-07-30 18:08
@ilia@phpc.social I actually consider memory_limit=-1 the best practice for test execution (it is also what --check-php-configuration recommends). A runaway test suite is a bug to find and fix, not something to paper over in the test runner.