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');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\XmlDriverTest');
|
2009-06-06 01:40:47 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\YamlDriverTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\ClassMetadataFactoryTest');
|
2009-07-16 00:18:40 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Mapping\ClassMetadataLoadEventTest');
|
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
|
|
|
}
|