2008-02-08 23:50:05 +03:00
|
|
|
<?php
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Ticket_AllTests::main');
|
|
|
|
}
|
|
|
|
|
2008-02-09 02:20:35 +03:00
|
|
|
require_once 'lib/DoctrineTestInit.php';
|
2008-02-08 23:50:05 +03:00
|
|
|
|
2008-02-09 02:20:35 +03:00
|
|
|
// Tests
|
2008-02-09 22:18:15 +03:00
|
|
|
require_once 'Orm/Ticket/1Test.php';
|
2008-02-08 23:50:05 +03:00
|
|
|
|
2008-02-09 22:18:15 +03:00
|
|
|
class Orm_Ticket_AllTests
|
2008-02-08 23:50:05 +03:00
|
|
|
{
|
|
|
|
public static function main()
|
|
|
|
{
|
|
|
|
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function suite()
|
|
|
|
{
|
|
|
|
$suite = new Doctrine_TestSuite('Doctrine Orm');
|
|
|
|
|
2008-02-09 22:18:15 +03:00
|
|
|
$suite->addTestSuite('Orm_Ticket_1Test');
|
2008-02-08 23:50:05 +03:00
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Ticket_AllTests::main') {
|
|
|
|
Ticket_AllTests::main();
|
|
|
|
}
|