PHP code example of live627 / phpunit-garbage-collector
1. Go to this page and download the library: Download live627/phpunit-garbage-collector 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/ */
live627 / phpunit-garbage-collector example snippets
use live627\PHPUnitGarbageCollector\IgnoreTestPolicy;
class IgnoreLegacyTestPolicy implements IgnoreTestPolicy {
public function shouldIgnore(\ReflectionObject $testReflection): bool {
return strpos($testReflection->getFileName(), 'Legacy') !== false;
}
}