1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
foreach (glob('*Test.php') as $file) { if ($file != 'AllValidationsTest.php') require $file; }
class AllTests { public static function suite() { $suite = new PHPUnit_Framework_TestSuite('PHPUnit');
foreach (glob('*Test.php') as $file) { if ($file != 'AllValidationsTest.php') $suite->addTestSuite(substr($file,0,-4)); }
return $suite; } } ?>
|