1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/Orm/AllTests.php

43 lines
1.0 KiB
PHP
Raw Normal View History

2008-02-08 22:35:27 +03:00
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Orm_AllTests::main');
}
2008-02-09 02:20:35 +03:00
require_once 'lib/DoctrineTestInit.php';
2008-02-08 22:35:27 +03:00
2008-02-09 02:20:35 +03:00
// Suites
2008-02-08 22:35:27 +03:00
require_once 'Orm/Component/AllTests.php';
2008-05-24 22:18:37 +04:00
require_once 'Orm/Query/AllTests.php';
require_once 'Orm/Hydration/AllTests.php';
require_once 'Orm/Ticket/AllTests.php';
// Tests
require_once 'Orm/UnitOfWorkTestCase.php';
2008-02-08 22:35:27 +03:00
class Orm_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
2008-02-09 21:59:19 +03:00
$suite = new Doctrine_OrmTestSuite('Doctrine Orm');
2008-02-08 22:35:27 +03:00
$suite->addTestSuite('Orm_UnitOfWorkTestCase');
2008-03-17 16:44:18 +03:00
//$suite->addTestSuite('Orm_ConfigurableTestCase');
2008-03-17 16:26:34 +03:00
2008-02-08 22:35:27 +03:00
$suite->addTest(Orm_Component_AllTests::suite());
2008-05-24 22:18:37 +04:00
$suite->addTest(Orm_Query_AllTests::suite());
$suite->addTest(Orm_Hydration_AllTests::suite());
$suite->addTest(Orm_Ticket_AllTests::suite());
2008-05-24 22:18:37 +04:00
2008-02-08 22:35:27 +03:00
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Orm_AllTests::main') {
Orm_AllTests::main();
2008-05-24 22:18:37 +04:00
}