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