3 require_once ('./_tests/config.inc.php');
4 require_once ('./_res/config.inc.php');
5 require_once ('functions.inc.php');
8 import ('imported/simpletest');
9 require_once ('unit_tester.php');
10 require_once ('mock_objects.php');
11 require_once ('collector.php');
12 require_once ('default_reporter.php');
13 } catch (tsExceptionPackageImport
$e) {
14 // problems with the simpletest imported package
20 $result = tsUnitTest
::execute ($_SERVER['argc'], $_SERVER['argv']);
21 } catch (tsExceptionPackageImport
$e) {
22 // could not import the tests package
23 echo $e->getMessage();
25 } catch (tsExceptionAutoload
$e) {
26 // could not load the tsUnitTest class
27 echo $e->getMessage();
31 if (SimpleReporter
::inCli()) {
32 exit ($result ?
0 : 1);