Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 53 lines (43 sloc) 2.179 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<?php

namespace Doctrine\Tests\DBAL\Functional;

use Doctrine\Tests\DBAL\Functional;
use Doctrine\Tests\TestUtil;

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Dbal_Functional_AllTests::main');
}

require_once __DIR__ . '/../../TestInit.php';

class AllTests
{
    public static function main()
    {
        \PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite()
    {
        $suite = new \Doctrine\Tests\DbalFunctionalTestSuite('Doctrine Dbal Functional');

        $conn= TestUtil::getConnection();
        $sm = $conn->getSchemaManager();

        if ($sm instanceof \Doctrine\DBAL\Schema\SqliteSchemaManager) {
            $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\Schema\SqliteSchemaManagerTest');
        } else if ($sm instanceof \Doctrine\DBAL\Schema\MySqlSchemaManager) {
            $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\Schema\MySqlSchemaManagerTest');
        } else if ($sm instanceof \Doctrine\DBAL\Schema\PostgreSqlSchemaManager) {
            $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\Schema\PostgreSqlSchemaManagerTest');
        } else if ($sm instanceof \Doctrine\DBAL\Schema\OracleSchemaManager) {
            $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\Schema\OracleSchemaManagerTest');
        } else if ($sm instanceof \Doctrine\DBAL\Schema\DB2SchemaManager) {
            $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\Schema\Db2SchemaManagerTest');
        }
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\ConnectionTest');
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\DataAccessTest');
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\WriteTest');
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\LoggingTest');
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\TypeConversionTest');
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\PortabilityTest');
        $suite->addTestSuite('Doctrine\Tests\DBAL\Functional\ModifyLimitQueryTest');

        return $suite;
    }
}

if (PHPUnit_MAIN_METHOD == 'Dbal_Functional_AllTests::main') {
    AllTests::main();
}
Something went wrong with that request. Please try again.