2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\ORM\Mapping;
|
|
|
|
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Orm_Mapping_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\DoctrineTestSuite('Doctrine Orm Mapping');
|
|
|
|
|
2009-06-01 20:15:49 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\ClassMetadataTest');
|
2010-02-02 00:48:27 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\XmlMappingDriverTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\YamlMappingDriverTest');
|
2010-02-03 00:17:00 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\AnnotationDriverTest');
|
2010-04-24 00:16:16 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\PHPMappingDriverTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\StaticPHPMappingDriverTest');
|
2009-06-06 01:40:47 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\ClassMetadataFactoryTest');
|
2009-07-16 00:18:40 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\ClassMetadataLoadEventTest');
|
2009-07-30 19:16:02 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\BasicInheritanceMappingTest');
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_Mapping_AllTests::main') {
|
|
|
|
AllTests::main();
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|