diff --git a/tests/Doctrine/Tests/Models/Issue5989/Issue5989Person.php b/tests/Doctrine/Tests/Models/Issue5989/Issue5989Person.php index d31e65def..a200722ff 100644 --- a/tests/Doctrine/Tests/Models/Issue5989/Issue5989Person.php +++ b/tests/Doctrine/Tests/Models/Issue5989/Issue5989Person.php @@ -15,6 +15,8 @@ namespace Doctrine\Tests\Models\Issue5989; */ class Issue5989Person { + const CLASSNAME = __CLASS__; + /** * @Id * @Column(type="integer") diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/Issue5989Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/Issue5989Test.php index cf601b99a..7a94bbe33 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/Issue5989Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/Issue5989Test.php @@ -40,7 +40,7 @@ class Issue5989Test extends \Doctrine\Tests\OrmFunctionalTestCase // instead of just returning the existing managed entities $this->_em->clear(); - $repository = $this->_em->getRepository(Issue5989Person::class); + $repository = $this->_em->getRepository(Issue5989Person::CLASSNAME); $manager = $repository->find($managerId); $employee = $repository->find($employeeId);