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