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