diff --git a/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php index 735c16ed5..213eba30b 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php @@ -34,7 +34,7 @@ class XmlMappingDriverTest extends AbstractMappingDriverTest } /** - * @expectedException Doctrine\ORM\Cache\CacheException + * @expectedException \Doctrine\ORM\Cache\CacheException * @expectedExceptionMessage Entity association field "Doctrine\Tests\ORM\Mapping\XMLSLC#foo" not configured as part of the second-level cache. */ public function testFailingSecondLevelCacheAssociation() @@ -132,7 +132,7 @@ class XmlMappingDriverTest extends AbstractMappingDriverTest /** * @group DDC-1468 * - * @expectedException Doctrine\Common\Persistence\Mapping\MappingException + * @expectedException \Doctrine\Common\Persistence\Mapping\MappingException * @expectedExceptionMessage Invalid mapping file 'Doctrine.Tests.Models.Generic.SerializationModel.dcm.xml' for class 'Doctrine\Tests\Models\Generic\SerializationModel'. */ public function testInvalidMappingFileException() @@ -140,6 +140,13 @@ class XmlMappingDriverTest extends AbstractMappingDriverTest $this->createClassMetadata('Doctrine\Tests\Models\Generic\SerializationModel'); } + public function testBooleanValuesForOptionIsSetCorrectly() + { + $class = $this->createClassMetadata('Doctrine\Tests\ORM\Mapping\User'); + $this->assertInternalType('bool', $class->fieldMappings['name']['options']['bool_opt']); + $this->assertFalse($class->fieldMappings['name']['options']['bool_opt']); + } + /** * @param string $xmlMappingFile * @dataProvider dataValidSchema diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml index 28b1e0571..a4a0fcef7 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml +++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml @@ -50,6 +50,7 @@ +