ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilServicesStyleSystemSuite.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
3 
4 
5 
6 
14 {
15  public static function suite()
16  {
18 
19  $base_dir = "./Services/Style/System/test/";
20 
21  $dir = opendir($base_dir);
22  while ($file = readdir($dir)) {
23  if (strpos($file, 'Test.php') !== false) {
24  include_once($base_dir . $file);
25  $test_class = str_replace(".php", "", $file);
26  $suite->addTestSuite($test_class);
27  }
28  }
29  return $suite;
30  }
31 }
$suite