예제 #1
0
 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');
     return $suite;
 }
예제 #2
0
 public static function suite()
 {
     $suite = new \Doctrine\Tests\DbalFunctionalTestSuite('Doctrine Dbal Functional');
     $suite->addTestSuite('Doctrine\\Tests\\DBAL\\Functional\\Schema\\SqliteSchemaManagerTest');
     $suite->addTestSuite('Doctrine\\Tests\\DBAL\\Functional\\Schema\\MySqlSchemaManagerTest');
     $suite->addTestSuite('Doctrine\\Tests\\DBAL\\Functional\\Schema\\PostgreSqlSchemaManagerTest');
     $suite->addTestSuite('Doctrine\\Tests\\DBAL\\Functional\\Schema\\OracleSchemaManagerTest');
     $suite->addTestSuite('Doctrine\\Tests\\DBAL\\Functional\\ConnectionTest');
     return $suite;
 }