phpunitHow to increase memory limit in PHPUnit?
To increase memory limit in PHPUnit, you can use the --testdox-html
option. This option allows you to specify the maximum memory limit for the test suite. For example:
phpunit --testdox-html --testdox-html-memory-limit=128M
This will set the memory limit to 128MB.
Code explanation
--testdox-html
: This option allows you to specify the maximum memory limit for the test suite.--testdox-html-memory-limit
: This option specifies the maximum memory limit for the test suite.
Helpful links
More of Phpunit
- How to stop PHPUnit on failure?
- How to skip a PHPUnit test?
- How to show warnings in PHPUnit?
- How to run tests in parallel with PHPUnit?
- How to run all PHPUnit tests?
- What are PHPUnit required extensions
- How to run PHPUnit in quiet mode?
- How to generate a coverage report with PHPUnit?
- How to create a mock object in PHPUnit?
- How to mock a query builder with PHPUnit?
See more codes...