ILIAS  release_8 Revision v8.24
ilServicesStyleSystemSuite.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestSuite;
22
23class ilServicesStyleSystemSuite extends TestSuite
24{
25 public static function suite(): TestSuite
26 {
27 $suite = new ilServicesStyleSystemSuite();
28
29 $base_dir = './Services/Style/System/test/';
30 $rec_it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($base_dir));
31
32 foreach ($rec_it as $file) {
33 if (strpos($file->getFilename(), 'Test.php') !== false) {
34 include_once($file->getPathname());
35 $test_class = str_replace('.php', '', $file->getFilename());
36 $suite->addTestSuite($test_class);
37 }
38 }
39 return $suite;
40 }
41}