2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\ORM\Functional;
|
|
|
|
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Orm_Functional_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\OrmFunctionalTestSuite('Doctrine Orm Functional');
|
|
|
|
|
2009-03-30 23:43:05 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\BasicFunctionalTest');
|
2009-04-12 23:02:12 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\NativeQueryTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\SingleTableInheritanceTest');
|
2009-05-21 12:53:40 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\ClassTableInheritanceTest');
|
2009-05-11 14:43:27 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\DetachedEntityTest');
|
2009-05-21 23:18:14 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\QueryCacheTest');
|
2009-06-15 22:25:47 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\QueryTest');
|
2009-07-01 16:03:41 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\OneToOneUnidirectionalAssociationTest');
|
2009-07-01 14:04:22 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\OneToOneBidirectionalAssociationTest');
|
2009-07-01 17:45:31 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\OneToManyBidirectionalAssociationTest');
|
2009-07-02 13:37:59 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\ManyToManyUnidirectionalAssociationTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Functional\ManyToManyBidirectionalAssociationTest');
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_Functional_AllTests::main') {
|
|
|
|
AllTests::main();
|
2009-07-01 16:03:41 +04:00
|
|
|
}
|