4 require_once __DIR__ .
'/bootstrap.php';
15 public static function suite()
19 foreach (
new \RegExIterator(
22 \RecursiveIteratorIterator::LEAVES_ONLY
27 require_once $file->getPathname();
30 foreach (
new \RegExIterator(
33 \RecursiveIteratorIterator::LEAVES_ONLY
35 '/(?<!Base)Test\.php$/' 38 require_once $file->getPathname();
40 $className = preg_replace(
'/(.*?)(\.php)/',
'$1', $file->getBasename());
41 if (class_exists($className)) {
42 $reflection = new \ReflectionClass($className);
44 !$reflection->isAbstract() &&
45 !$reflection->isInterface() &&
46 $reflection->isSubclassOf(\PHPUnit_Framework_TestCase::class)) {
47 $suite->addTestSuite($className);
Class ilServicesTermsOfServiceSuite.