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