1
0
mirror of synced 2025-01-19 06:51:40 +03:00
doctrine2/tests/Orm/AllTests.php

40 lines
977 B
PHP
Raw Normal View History

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