public function testConfigHasExplicitForeignKeyIndex() { $schemaConfig = new \Doctrine\DBAL\Schema\SchemaConfig(); $schemaConfig->setExplicitForeignKeyIndexes(false); $schema = new Schema(array(), array(), $schemaConfig); $this->assertFalse($schema->hasExplicitForeignKeyIndexes()); $schemaConfig->setExplicitForeignKeyIndexes(true); $this->assertTrue($schema->hasExplicitForeignKeyIndexes()); }