1
0
mirror of synced 2025-01-06 00:57:10 +03:00
doctrine2/tests/Orm/Mapping/AllTests.php
2009-01-06 17:22:23 +00:00

33 lines
765 B
PHP

<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Orm_Mapping_AllTests::main');
}
require_once 'lib/DoctrineTestInit.php';
// Tests
require_once 'Orm/Mapping/ClassMetadataTest.php';
require_once 'Orm/Mapping/ClassMetadataFactoryTest.php';
class Orm_Mapping_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new Doctrine_TestSuite('Doctrine Orm Mapping');
$suite->addTestSuite('Orm_Mapping_ClassMetadataTest');
$suite->addTestSuite('Orm_Mapping_ClassMetadataFactoryTest');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Orm_Mapping_AllTests::main') {
Orm_Mapping_AllTests::main();
}