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