From 8580f02c6ac78d1ec3811d43025792abb21d4d47 Mon Sep 17 00:00:00 2001 From: Alexander Guz Date: Wed, 16 Nov 2016 18:07:58 +0100 Subject: [PATCH] #6129 Use User::class to get metadata instead of string. --- tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php index 213eba30b..b8d638e78 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php @@ -140,9 +140,12 @@ class XmlMappingDriverTest extends AbstractMappingDriverTest $this->createClassMetadata('Doctrine\Tests\Models\Generic\SerializationModel'); } + /** + * @group #6129 + */ public function testBooleanValuesForOptionIsSetCorrectly() { - $class = $this->createClassMetadata('Doctrine\Tests\ORM\Mapping\User'); + $class = $this->createClassMetadata(User::class); $this->assertInternalType('bool', $class->fieldMappings['name']['options']['bool_opt']); $this->assertFalse($class->fieldMappings['name']['options']['bool_opt']); }