public function testUnanotatedClassCanHaveAnotatedField() { $reflection = new ReflectionClass('SomeOtherClass'); $property = $reflection->getProperty('field1'); $finder = new DocComment(); $this->assertEquals($finder->get($property), '/** field doccomment */'); }
public static function getDocComment($reflection) { if (self::checkRawDocCommentParsingNeeded()) { $docComment = new DocComment(); return $docComment->get($reflection); } else { return $reflection->getDocComment(); } }