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-02-18 10:59:11 +03:00
|
|
|
|
2009-01-19 21:40:12 +03:00
|
|
|
/*
|
2008-05-24 22:18:37 +04:00
|
|
|
$suite->addTestSuite('Orm_Query_ScannerTest');
|
|
|
|
$suite->addTestSuite('Orm_Query_DqlGenerationTest');
|
|
|
|
$suite->addTestSuite('Orm_Query_DeleteSqlGenerationTest');
|
2009-01-19 21:40:12 +03:00
|
|
|
$suite->addTestSuite('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
|
|
|
}
|