This package is abandoned and no longer maintained. No replacement package was suggested.

Report high memory usage PHPUnit tests

v1.0.1 2022-03-31 13:15 UTC

This package is not auto-updated.

Last update: 2023-03-31 13:13:21 UTC


Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform


Add into the phpunit.xml extensions section

    <extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook"/>

There are optional arguments to set the maximum allowed memory threshold and whether to display a running total of usage after each test

    <extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook">