3 require_once __DIR__ .
'/bootstrap.php';
12 public static function suite()
16 foreach (
new \RegExIterator(
19 \RecursiveIteratorIterator::LEAVES_ONLY
21 '/(?<!Base)Test\.php$/' 24 require_once $file->getPathname();
25 $className = preg_replace(
'/(.*?)(\.php)/',
'$1', $file->getBasename());
26 if (class_exists($className)) {
27 $reflection = new \ReflectionClass($className);
29 !$reflection->isAbstract() &&
30 !$reflection->isInterface() &&
31 $reflection->isSubclassOf(\PHPUnit_Framework_TestCase::class)) {
32 $suite->addTestSuite($className);