$classes) { if ($modelSet == "customtype") { continue; } // DDC-3380: Register DBAL type for these modelsets if (substr($modelSet, 0, 4) == 'vct_') { if (DBALType::hasType('rot13')) { DBALType::overrideType('rot13', 'Doctrine\Tests\DbalTypes\Rot13Type'); } else { DBALType::addType('rot13', 'Doctrine\Tests\DbalTypes\Rot13Type'); } } $modelSets[] = array($modelSet); } return $modelSets; } /** * @dataProvider dataValidateModelSets */ public function testValidateModelSets($modelSet) { $validator = new SchemaValidator($this->_em); $classes = array(); foreach (self::$_modelSets[$modelSet] as $className) { $classes[] = $this->_em->getClassMetadata($className); } foreach ($classes as $class) { $ce = $validator->validateClass($class); $this->assertEquals(0, count($ce), "Invalid Modelset: " . $modelSet . " class " . $class->name . ": ". implode("\n", $ce)); } } }