public function testFactoryUpperCaseKeyOk() { $factory = new PlatformFactory(); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\DB2Platform', $factory->create('DB2')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\MySqlPlatform', $factory->create('MYSQL')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\OraclePlatform', $factory->create('ORACLE')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\PostgreSqlPlatform', $factory->create('POSTGRESQL')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\SqlitePlatform', $factory->create('SQLITE')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\SQLServer2005Platform', $factory->create('SQLSERVER2005')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\SQLServer2008Platform', $factory->create('SQLSERVER2008')); $this->assertInstanceOf('Doctrine\\DBAL\\Platforms\\SQLServerPlatform', $factory->create('SQLSERVER')); }