2008-02-08 22:35:27 +03:00
|
|
|
<?php
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Orm_AllTests::main');
|
|
|
|
}
|
|
|
|
|
2008-02-09 02:20:35 +03:00
|
|
|
require_once 'lib/DoctrineTestInit.php';
|
2008-02-08 22:35:27 +03:00
|
|
|
|
2008-02-09 02:20:35 +03:00
|
|
|
// Suites
|
2008-02-08 22:35:27 +03:00
|
|
|
require_once 'Orm/Component/AllTests.php';
|
2008-05-24 22:18:37 +04:00
|
|
|
require_once 'Orm/Query/AllTests.php';
|
2008-04-13 01:35:21 +04:00
|
|
|
require_once 'Orm/Hydration/AllTests.php';
|
2008-02-09 22:18:15 +03:00
|
|
|
require_once 'Orm/Ticket/AllTests.php';
|
2008-04-13 01:35:21 +04:00
|
|
|
|
|
|
|
// Tests
|
2008-03-05 14:24:33 +03:00
|
|
|
require_once 'Orm/UnitOfWorkTestCase.php';
|
2008-02-08 22:35:27 +03:00
|
|
|
|
|
|
|
class Orm_AllTests
|
|
|
|
{
|
|
|
|
public static function main()
|
|
|
|
{
|
|
|
|
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function suite()
|
|
|
|
{
|
2008-02-09 21:59:19 +03:00
|
|
|
$suite = new Doctrine_OrmTestSuite('Doctrine Orm');
|
2008-02-08 22:35:27 +03:00
|
|
|
|
2008-03-05 14:24:33 +03:00
|
|
|
$suite->addTestSuite('Orm_UnitOfWorkTestCase');
|
2008-03-17 16:44:18 +03:00
|
|
|
//$suite->addTestSuite('Orm_ConfigurableTestCase');
|
2008-03-17 16:26:34 +03:00
|
|
|
|
2008-02-08 22:35:27 +03:00
|
|
|
$suite->addTest(Orm_Component_AllTests::suite());
|
2008-05-24 22:18:37 +04:00
|
|
|
$suite->addTest(Orm_Query_AllTests::suite());
|
2008-04-13 01:35:21 +04:00
|
|
|
$suite->addTest(Orm_Hydration_AllTests::suite());
|
2008-02-09 22:18:15 +03:00
|
|
|
$suite->addTest(Orm_Ticket_AllTests::suite());
|
2008-05-24 22:18:37 +04:00
|
|
|
|
2008-02-08 22:35:27 +03:00
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_AllTests::main') {
|
|
|
|
Orm_AllTests::main();
|
2008-05-24 22:18:37 +04:00
|
|
|
}
|