ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
24 if (strpos($file, 'Test.php') !== false)
25 {
26 include_once($base_dir.$file);
27 $test_class = str_replace(".php","",$file);
28 $suite->addTestSuite($test_class);
29 }
30 }
31 return $suite;
32 }
33}
$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