AllTests.php 601 Bytes
Newer Older
1 2 3 4 5
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Ticket_AllTests::main');
}

jwage's avatar
jwage committed
6
require_once 'lib/DoctrineTestInit.php';
7

jwage's avatar
jwage committed
8
// Tests
9
require_once 'Orm/Ticket/1Test.php';
10

11
class Orm_Ticket_AllTests
12 13 14 15 16 17 18 19 20 21
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite()
    {
        $suite = new Doctrine_TestSuite('Doctrine Orm');

22
        $suite->addTestSuite('Orm_Ticket_1Test');
23 24 25 26 27 28 29 30
        
        return $suite;
    }
}

if (PHPUnit_MAIN_METHOD == 'Ticket_AllTests::main') {
    Ticket_AllTests::main();
}