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 mock a property in PHPUnit?
- How to skip a PHPUnit test?
- How to stop PHPUnit on failure?
- How to mock a query builder with PHPUnit?
- How to run tests in parallel with PHPUnit?
- How to use named arguments in PHPUnit?
- How to use the PHPUnit Framework ExceptionWrapper?
- How to disable deprecation notices in PHPUnit?
- How to run PHPUnit in quiet mode?
See more codes...