/** * 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->getMethod("getCounter"); }
/** * @covers ::getMethod */ public function testGetMethod() { $this->assertInstanceOf(AnnotatedMethod::class, $this->fixture->getMethod("getCounter")); $this->assertSame($this->fixture, $this->fixture->getMethod("getCounter")->getDeclaringClass()); }