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
|
|
|
#require_once 'IdentifierRecognitionTest.php';
|
2008-09-23 06:45:02 +04:00
|
|
|
/*require_once 'ScannerTest.php';
|
2008-05-24 22:18:37 +04:00
|
|
|
require_once 'DqlGenerationTest.php';
|
|
|
|
require_once 'DeleteSqlGenerationTest.php';
|
|
|
|
require_once 'UpdateSqlGenerationTest.php';
|
|
|
|
require_once 'SelectSqlGenerationTest.php';
|
2008-09-23 06:45:02 +04:00
|
|
|
require_once 'LanguageRecognitionTest.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-01-19 21:40:12 +03:00
|
|
|
/*
|
|
|
|
$suite->addTestSuite('Orm_Query_LanguageRecognitionTest');
|
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();
|
2008-05-24 22:18:37 +04:00
|
|
|
}
|