ILIAS  release_8 Revision v8.23
ilServicesStyleSystemSuite.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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 }