43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\ORM;
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
define('PHPUnit_MAIN_METHOD', 'Orm_AllTests::main');
|
|
}
|
|
|
|
require_once __DIR__ . '/../TestInit.php';
|
|
|
|
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');
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\QueryBuilderTest');
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Proxy\ProxyClassGeneratorTest');
|
|
$suite->addTest(Query\AllTests::suite());
|
|
$suite->addTest(Hydration\AllTests::suite());
|
|
$suite->addTest(Entity\AllTests::suite());
|
|
$suite->addTest(Tools\AllTests::suite());
|
|
$suite->addTest(Associations\AllTests::suite());
|
|
$suite->addTest(Mapping\AllTests::suite());
|
|
$suite->addTest(Functional\AllTests::suite());
|
|
$suite->addTest(Id\AllTests::suite());
|
|
|
|
return $suite;
|
|
}
|
|
}
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_AllTests::main') {
|
|
AllTests::main();
|
|
}
|