* @license MIT * * @group Coverage */ abstract class AbstractUniquePropertyNameTest extends PHPUnit_Framework_TestCase { /** * Verifies that a given property name is unique across two different instantiations of the property */ public function testUniqueProperty() { $property1 = $this->createProperty(); $property2 = $this->createProperty(); $this->assertSame($property1->getName(), $property1->getName()); $this->assertNotEquals($property1->getName(), $property2->getName()); } /** * @return \Zend\Code\Generator\PropertyGenerator */ abstract protected function createProperty(); }