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 show warnings in PHPUnit?
- How to skip a PHPUnit test?
- How to clear the PHPUnit cache?
- How to log to the console with PHPUnit?
- How to use PHPUnit json assert?
- What are PHPUnit required extensions
- How to stop PHPUnit on failure?
- How to mock a method with different arguments in PHPUnit?
- How to test private methods in PHPUnit?
- How to install PHPUnit with a PHAR file?
See more codes...