ref = new \ReflectionClass(static::class); $this->reader = new AnnotationReader(); parent::__construct($name, $data, $dataName); } function testProperty() { $ret = $this->reader->getPropertyAnnotations($this->ref->getProperty('property1')); $this->assertIsArray($ret); $this->assertEquals(2,count($ret)); $this->assertEquals(["code"=>2],$ret[0]->input); $this->assertEquals('{"code":2,"result":[{"name":1}]}',$ret[1]->input); } function testNoneProperty() { $ret = $this->reader->getPropertyAnnotations($this->ref->getProperty('property2')); $this->assertIsArray($ret); $this->assertEquals(2,count($ret)); $this->assertEquals(["code"=>2],$ret[0]->value); $this->assertEquals('{"code":2,"result":[{"name":1}]}',$ret[1]->value); } }