2009-01-22 22:38:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\DBAL;
|
|
|
|
|
|
|
|
use Doctrine\Tests\DBAL\Component;
|
|
|
|
use Doctrine\Tests\DBAL\Ticker;
|
|
|
|
|
|
|
|
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-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-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();
|
|
|
|
}
|