3 declare(strict_types=1);
25 require_once __DIR__ .
'/bootstrap.php';
37 public static function suite():
self 41 foreach (
new RegExIterator(
44 RecursiveIteratorIterator::LEAVES_ONLY
49 require_once $file->getPathname();
52 foreach (
new RegExIterator(
55 RecursiveIteratorIterator::LEAVES_ONLY
57 '/(?<!Base)Test\.php$/' 60 require_once $file->getPathname();
62 $className = preg_replace(
'/(.*?)(\.php)/',
'$1', $file->getBasename());
63 if (class_exists($className)) {
66 !$reflection->isAbstract() &&
67 !$reflection->isInterface() &&
68 $reflection->isSubclassOf(TestCase::class)) {
69 $suite->addTestSuite($className);
Class ilServicesLanguageSuite.