diff --git a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php index 0b128710a..1b5191039 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php @@ -590,7 +590,8 @@ abstract class Animal public static function loadMetadata(ClassMetadataInfo $metadata) { - + $metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_CUSTOM); + $metadata->setCustomGeneratorDefinition(array("class" => "stdClass", "args" => array("par1", "par2"))); } } diff --git a/tests/Doctrine/Tests/ORM/Mapping/PHPMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/PHPMappingDriverTest.php index b346973cf..e14828e00 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/PHPMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/PHPMappingDriverTest.php @@ -14,17 +14,14 @@ class PHPMappingDriverTest extends AbstractMappingDriverTest { $path = __DIR__ . DIRECTORY_SEPARATOR . 'php'; - /* - // Convert YAML mapping information to PHP - // Uncomment this code if the YAML changes and you want to update the PHP code + // Convert Annotation mapping information to PHP + // Uncomment this code if annotations changed and you want to update the PHP code // for the same mapping information - $cme = new ClassMetadataExporter(); - $cme->addMappingSource(__DIR__ . DIRECTORY_SEPARATOR . 'yaml'); - - $exporter = $cme->getExporter('php', $path); - $exporter->setMetadatas($cme->getMetadatas()); - $exporter->export(); - */ +// $meta = new \Doctrine\ORM\Mapping\ClassMetadataInfo("Doctrine\Tests\ORM\Mapping\Animal"); +// $driver = $this->createAnnotationDriver(); +// $driver->loadMetadataForClass("Doctrine\Tests\ORM\Mapping\Animal", $meta); +// $exporter = $cme->getExporter('php', $path); +// echo $exporter->exportClassMetadata($meta); return new PHPDriver($path); }