Trac

root/trunk/tests/AllTests.php

Revision 3718, 0.6 kB (checked in by romanb, 9 months ago)

more changes to the new test setup. introduced separate ticket folders.

Line 
1 <?php
2 if (!defined('PHPUnit_MAIN_METHOD')) {
3     define('PHPUnit_MAIN_METHOD', 'AllTests::main');
4 }
5
6 require_once 'lib/DoctrineTestInit.php';
7
8 // Suites
9 require_once 'Dbal/AllTests.php';
10 require_once 'Orm/AllTests.php';
11
12 class AllTests
13 {
14     public static function main()
15     {
16         PHPUnit_TextUI_TestRunner::run(self::suite());
17     }
18
19     public static function suite()
20     {
21         $suite = new Doctrine_TestSuite('Doctrine Tests');
22
23         $suite->addTest(Dbal_AllTests::suite());
24         $suite->addTest(Orm_AllTests::suite());
25
26         return $suite;
27     }
28 }
29
30 if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
31     AllTests::main();
32 }
Note: See TracBrowser for help on using the browser.