コード例 #1
0
ファイル: DocCommentTest.php プロジェクト: niktux/addendum
 public function testUnanotatedClassCanHaveAnotatedField()
 {
     $reflection = new ReflectionClass('SomeOtherClass');
     $property = $reflection->getProperty('field1');
     $finder = new DocComment();
     $this->assertEquals($finder->get($property), '/** field doccomment */');
 }
コード例 #2
0
ファイル: annotations.php プロジェクト: jackbravo/doctrine
 public static function getDocComment($reflection)
 {
     if (self::checkRawDocCommentParsingNeeded()) {
         $docComment = new DocComment();
         return $docComment->get($reflection);
     } else {
         return $reflection->getDocComment();
     }
 }