2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\ORM;
|
|
|
|
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Orm_AllTests::main');
|
|
|
|
}
|
|
|
|
|
2009-01-24 19:56:44 +03:00
|
|
|
require_once __DIR__ . '/../TestInit.php';
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
class AllTests
|
|
|
|
{
|
|
|
|
public static function main()
|
|
|
|
{
|
|
|
|
\PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function suite()
|
|
|
|
{
|
|
|
|
$suite = new \Doctrine\Tests\OrmTestSuite('Doctrine Orm');
|
|
|
|
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\UnitOfWorkTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\EntityManagerTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\CommitOrderCalculatorTest');
|
2009-07-09 08:18:58 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\QueryBuilderTest');
|
2009-01-22 22:38:10 +03:00
|
|
|
$suite->addTest(Query\AllTests::suite());
|
|
|
|
$suite->addTest(Hydration\AllTests::suite());
|
|
|
|
$suite->addTest(Entity\AllTests::suite());
|
|
|
|
$suite->addTest(Associations\AllTests::suite());
|
|
|
|
$suite->addTest(Mapping\AllTests::suite());
|
|
|
|
$suite->addTest(Functional\AllTests::suite());
|
2009-03-14 12:05:52 +03:00
|
|
|
$suite->addTest(Id\AllTests::suite());
|
2009-08-13 14:13:06 +04:00
|
|
|
$suite->addTest(Proxy\AllTests::suite());
|
2009-10-06 02:09:29 +04:00
|
|
|
$suite->addTest(Tools\AllTests::suite());
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_AllTests::main') {
|
|
|
|
AllTests::main();
|
2009-07-16 17:20:31 +04:00
|
|
|
}
|