ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
An exception for terminatinating execution or to throw for unit testing.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file