diff --git a/tests/Doctrine/Tests/ORM/Tools/Export/XmlClassMetadataExporterTest.php b/tests/Doctrine/Tests/ORM/Tools/Export/XmlClassMetadataExporterTest.php index 0fe58b4ecfb..5bec99cfe91 100644 --- a/tests/Doctrine/Tests/ORM/Tools/Export/XmlClassMetadataExporterTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/Export/XmlClassMetadataExporterTest.php @@ -76,6 +76,42 @@ public function testSequenceGenerator() { +XML; + + $this->assertXmlStringEqualsXmlString($expectedFileContent, $exporter->exportClassMetadata($metadata)); + } + + /** + * @group 1214 + * @group 1216 + * @group DDC-3439 + */ + public function testFieldOptionsExport() { + $exporter = new XmlExporter(); + $metadata = new ClassMetadata('entityTest'); + + $metadata->mapField(array( + "fieldName" => 'myField', + "type" => 'string', + "columnName" => 'my_field', + "options" => array( + "default" => "default_string", + "comment" => "The comment for the field", + ), + )); + + $expectedFileContent = <<<'XML' + + + + + + + + + + + XML; $this->assertXmlStringEqualsXmlString($expectedFileContent, $exporter->exportClassMetadata($metadata));