30 $path =
'/usr/local/simpletest' . PATH_SEPARATOR;
31 set_include_path(get_include_path() . PATH_SEPARATOR . $path);
32 if (!defined(
'SIMPLE_TEST'))
33 define(
'SIMPLE_TEST',
'/usr/local/simpletest/');
36 require_once SIMPLE_TEST .
'unit_tester.php';
37 require_once SIMPLE_TEST .
'reporter.php';
38 require_once SIMPLE_TEST .
'web_tester.php';
40 require_once (
'TestEnvironment.php');
42 $test =
new TestSuite(
"Sample Fossology test");
43 $test->addTestFile(
'mytest.php');
48 if (TextReporter :: inCli())
50 exit ($test->run(
new TextReporter()) ? 0 : 1);
52 $test->run(
new HtmlReporter());