2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Common;
|
|
|
|
|
|
|
|
use Doctrine\Tests\Common\Collections;
|
|
|
|
|
|
|
|
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-07 20:02:13 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\Common\EventManagerTest');
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
$suite->addTest(Collections\AllTests::suite());
|
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Common_AllTests::main') {
|
|
|
|
AllTests::main();
|
|
|
|
}
|