2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\ORM;
|
|
|
|
|
|
|
|
use Doctrine\Tests\ORM\Associations;
|
|
|
|
use Doctrine\Tests\ORM\Cache;
|
|
|
|
use Doctrine\Tests\ORM\Entity;
|
|
|
|
use Doctrine\Tests\ORM\Hydration;
|
|
|
|
use Doctrine\Tests\ORM\Mapping;
|
|
|
|
use Doctrine\Tests\ORM\Query;
|
|
|
|
use Doctrine\Tests\ORM\Ticket;
|
|
|
|
use Doctrine\Tests\ORM\Functional;
|
|
|
|
|
|
|
|
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\EntityPersisterTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\CommitOrderCalculatorTest');
|
2009-02-17 04:54:11 +03:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
$suite->addTest(Query\AllTests::suite());
|
|
|
|
$suite->addTest(Hydration\AllTests::suite());
|
|
|
|
$suite->addTest(Entity\AllTests::suite());
|
2009-02-17 04:54:11 +03:00
|
|
|
$suite->addTest(Export\AllTests::suite());
|
2009-01-22 22:38:10 +03:00
|
|
|
$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-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_AllTests::main') {
|
|
|
|
AllTests::main();
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|