phpunit-memory-usage
Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform
Configuration
Add into the phpunit.xml extensions section
<extensions>
<extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook"/>
extensions>
There are optional arguments to set the maximum allowed memory threshold and whether to display a running total of usage after each test
<extensions>
<extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook">
<arguments>
<integer>500000integer>
<boolean>trueboolean>
arguments>
extension>
extensions>