2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\DBAL;
|
|
|
|
|
|
|
|
use Doctrine\Tests\DBAL\Component;
|
|
|
|
use Doctrine\Tests\DBAL\Ticker;
|
2009-05-27 22:54:40 +04:00
|
|
|
use Doctrine\Tests\DBAL\Functional;
|
2009-01-22 22:38:10 +03:00
|
|
|
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
2009-02-18 13:26:12 +03:00
|
|
|
define('PHPUnit_MAIN_METHOD', 'Dbal_Platforms_AllTests::main');
|
2009-01-22 22:38:10 +03:00
|
|
|
}
|
|
|
|
|
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()
|
|
|
|
{
|
2009-02-18 02:27:11 +03:00
|
|
|
$suite = new \Doctrine\Tests\DbalTestSuite('Doctrine DBAL');
|
|
|
|
|
2009-06-20 18:24:21 +04:00
|
|
|
// Platform tests
|
2009-02-18 13:26:12 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Platforms\SqlitePlatformTest');
|
2009-05-03 22:07:57 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Platforms\MySqlPlatformTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Platforms\PostgreSqlPlatformTest');
|
2009-05-26 22:14:19 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Platforms\MsSqlPlatformTest');
|
2009-07-14 02:59:36 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Platforms\OraclePlatformTest');
|
2009-05-26 22:14:19 +04:00
|
|
|
|
2009-06-20 18:24:21 +04:00
|
|
|
// Type tests
|
2009-06-20 19:09:59 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\ArrayTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\ObjectTest');
|
2009-06-20 16:59:33 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\DateTimeTest');
|
2009-06-20 18:24:21 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\DateTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\TimeTest');
|
2009-06-20 19:09:59 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\BooleanTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\DecimalTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\IntegerTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\SmallIntTest');
|
2009-07-11 12:48:57 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Types\StringTest');
|
2009-06-20 16:59:33 +04:00
|
|
|
|
2009-11-28 01:01:47 +03:00
|
|
|
// Schema tests
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\ColumnTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\IndexTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\TableTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\SchemaTest');
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\Visitor\SchemaSqlCollectorTest');
|
2009-11-28 17:30:08 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\ComparatorTest');
|
2009-12-07 02:11:35 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Schema\SchemaDiffTest');
|
2009-11-28 01:01:47 +03:00
|
|
|
|
2009-07-15 02:36:09 +04:00
|
|
|
// Driver manager test
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\DriverManagerTest');
|
|
|
|
|
|
|
|
// Connection test
|
2009-07-16 13:12:40 +04:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\ConnectionTest');
|
2010-02-01 01:01:58 +03:00
|
|
|
|
|
|
|
// Events and Listeners
|
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Events\OracleSessionInitTest');
|
2010-02-01 21:56:06 +03:00
|
|
|
$suite->addTestSuite('Doctrine\Tests\DBAL\Events\MysqlSessionInitTest');
|
2009-07-15 02:36:09 +04:00
|
|
|
|
|
|
|
// All Functional DBAL tests
|
2009-05-27 22:54:40 +04:00
|
|
|
$suite->addTest(Functional\AllTests::suite());
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-02-18 13:26:12 +03:00
|
|
|
if (PHPUnit_MAIN_METHOD == 'Dbal_Platforms_AllTests::main') {
|
2009-01-22 22:38:10 +03:00
|
|
|
AllTests::main();
|
2009-07-11 12:48:57 +04:00
|
|
|
}
|