PHP code example of ministryofjustice / phpunit-memory-usage

1. Go to this page and download the library: Download ministryofjustice/phpunit-memory-usage library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ministryofjustice / phpunit-memory-usage example snippets

xml
<extensions>
    <extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook">
        <arguments>
            <integer>500000</integer>
            <boolean>true</boolean>
        </arguments>
    </extension>
</extensions>