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