Set the include path right
[isso.git] / PHPUnit / AllTests.php
1 <?php
2
3 ini_set('include_path', ini_get('include_path') . ':/Server/htdocs');
4
5 // load the test harness
6 require_once('PHPUnit2/Framework/TestResult.php');
7 require_once('PHPUnit2/Framework/TestSuite.php');
8 require_once('PHPUnit2/Framework/Warning.php');
9 require_once('PHPUnit2/Framework/IncompleteTestError.php');
10
11 require_once('/Server/htdocs/tools/ISI_PHPUnit2_Output_HTML_Listener.php');
12 require_once('PHPUnit2/TextUI/ResultPrinter.php');
13
14 // setup the new test suite
15 $result = new PHPUnit2_Framework_TestResult;
16 $result->addListener(new ISI_PHPUnit2_Output_HTML_Listener);
17 $suite = new PHPUnit2_Framework_TestSuite;
18
19 // load tests
20 $suite->addTestFile('LoaderTest.php');
21
22 // run all the tests
23 $suite->run($result);
24
25 ?>