3 error_reporting(E_ALL | E_STRICT
);
5 chdir(dirname(__FILE__
));
7 require '../test-settings.php';
8 require_once $simpletest . '/unit_tester.php';
9 require_once $simpletest . '/mock_objects.php';
11 // Easy repository to run tests out ofs
12 define('GIT_REPO', realpath(dirname(__FILE__
) . '/..'));
13 define('GIT_FIXTURES', realpath(dirname(__FILE__
) . '/fixtures'));
15 require_once '../library/Git.php';
17 Mock
::generate('Git', 'GitMock');
19 require_once 'GitHarness.php';
20 require_once 'GitTest.php';
21 require_once 'Git/TreeTest.php';
23 $loader = new SimpleFileLoader();
24 $suite = $loader->createSuiteFromClasses('PHPGit Tests', array(
25 'GitTest', 'Git_TreeTest',
27 $result = $suite->run(new DefaultReporter());
28 if (SimpleReporter
::inCli()) {
29 exit($result ?
0 : 1);