/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ public function setUp() { $class = new AnnotatedClass(ChildPerson::class); $this->fixture = $class->getProperty("counter"); }
/** * @covers ::getProperty */ public function testGetProperty() { $this->assertInstanceOf(AnnotatedProperty::class, $this->fixture->getProperty("counter")); $this->assertSame($this->fixture, $this->fixture->getProperty("counter")->getDeclaringClass()); }