2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Common;
|
|
|
|
|
|
|
|
use Doctrine\Tests\Common\Collections;
|
2009-07-07 00:34:54 +04:00
|
|
|
use Doctrine\Tests\Common\Annotations;
|
2009-07-15 02:36:09 +04:00
|
|
|
use Doctrine\Tests\Common\Cache;
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Common_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 Common Tests');
|
|
|
|
|
2009-02-19 10:00:54 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\Common\DoctrineExceptionTest');
|
2009-02-18 01:30:13 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\Common\ClassLoaderTest');
|
2009-02-19 10:00:54 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\Common\EventManagerTest');
|
2009-02-07 20:02:13 +03:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
$suite->addTest(Collections\AllTests::suite());
|
2009-07-07 00:34:54 +04:00
|
|
|
$suite->addTest(Annotations\AllTests::suite());
|
2009-07-15 02:36:09 +04:00
|
|
|
$suite->addTest(Cache\AllTests::suite());
|
2010-01-10 00:25:51 +03:00
|
|
|
$suite->addTest(Cli\AllTests::suite());
|
2009-02-19 10:00:54 +03:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Common_AllTests::main') {
|
|
|
|
AllTests::main();
|
|
|
|
}
|