diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3303Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3303Test.php index b40f99ff9d6..df96bf901cc 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3303Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3303Test.php @@ -9,7 +9,7 @@ protected function setUp() { parent::setUp(); - $this->_schemaTool->createSchema([$this->_em->getClassMetadata(DDC3303Employee::class)]); + $this->_schemaTool->createSchema([$this->_em->getClassMetadata(DDC3303Employee::CLASSNAME)]); } /** @@ -31,7 +31,7 @@ public function testEmbeddedObjectsAreAlsoInherited() $this->_em->flush(); $this->_em->clear(); - self::assertEquals($employee, $this->_em->find(DDC3303Employee::class, 'John Doe')); + self::assertEquals($employee, $this->_em->find(DDC3303Employee::CLASSNAME, 'John Doe')); } } @@ -79,6 +79,8 @@ public function __construct($street, $number, $city) */ class DDC3303Employee extends DDC3303Person { + const CLASSNAME = __CLASS__; + /** @Column(type="string") @var string */ private $company;