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 skip a PHPUnit test?
- How to run PHPUnit in a Docker container?
- How to write a functional test with PHPUnit?
- How to show warnings in PHPUnit?
- What are PHPUnit required extensions
- How to use the PHPUnit cache?
- How to ignore a test in PHPUnit?
- How to run all PHPUnit tests?
- How to mock a query builder with PHPUnit?
- How to install PHPUnit with a PHAR file?
See more codes...