2008-05-24 22:18:37 +04:00
|
|
|
<?php
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
namespace Doctrine\Tests\ORM\Query;
|
|
|
|
|
2008-05-24 22:18:37 +04:00
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'Orm_Query_AllTests::main');
|
|
|
|
}
|
|
|
|
|
2009-01-24 19:56:44 +03:00
|
|
|
require_once __DIR__ . '/../../TestInit.php';
|
2008-05-24 22:18:37 +04:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
class AllTests
|
2008-05-24 22:18:37 +04:00
|
|
|
{
|
|
|
|
public static function main()
|
|
|
|
{
|
2009-01-22 22:38:10 +03:00
|
|
|
\PHPUnit_TextUI_TestRunner::run(self::suite());
|
2008-05-24 22:18:37 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function suite()
|
|
|
|
{
|
2009-01-22 22:38:10 +03:00
|
|
|
$suite = new \Doctrine\Tests\DoctrineTestSuite('Doctrine Orm Query');
|
2008-05-24 22:18:37 +04:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Query\IdentifierRecognitionTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Query\SelectSqlGenerationTest');
|
2009-02-18 13:39:51 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Query\LanguageRecognitionTest');
|
2009-03-20 23:53:14 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Query\LexerTest');
|
2009-03-21 00:28:19 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Query\DeleteSqlGenerationTest');
|
2009-03-21 22:58:52 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\ORM\Query\UpdateSqlGenerationTest');
|
2008-05-24 22:18:37 +04:00
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Orm_Query_AllTests::main') {
|
2009-01-22 22:38:10 +03:00
|
|
|
AllTests::main();
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|