Skip to content

Commit

Permalink
#5867 s/::class/::CLASSNAME for PHP 5.4 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jun 19, 2016
1 parent 2af84c6 commit b183818
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3303Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
}

/**
Expand All @@ -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'));
}
}

Expand Down Expand Up @@ -79,6 +79,8 @@ public function __construct($street, $number, $city)
*/
class DDC3303Employee extends DDC3303Person
{
const CLASSNAME = __CLASS__;

/** @Column(type="string") @var string */
private $company;

Expand Down

0 comments on commit b183818

Please sign in to comment.