Пример #1
0
 /**
  * @param Comment $comment
  * @param AnnotationMetadata $metadata
  */
 private function collectDefaultAttributeMetadata(Comment $comment, AnnotationMetadata $metadata)
 {
     //@DefaultAttribute
     if ($comment->has('DefaultAttribute')) {
         $metadata->defaultAttribute = $comment->get('DefaultAttribute');
     }
 }
Пример #2
0
 /**
  * @expectedException \OutOfBoundsException
  * @expectedExceptionMessage Comment does not have @tag annotation.
  */
 public function testGetException()
 {
     $comment = new Comment('');
     $comment->get('tag');
 }