Ejemplo n.º 1
0
 public function testCanGetSingleAnnotation()
 {
     $annotation = new MockAnnotation();
     $collection = new AnnotationCollection();
     $collection->addAnnotation($annotation);
     $this->assertSame([$annotation], $collection->get(MockAnnotation::NAME));
 }
Ejemplo n.º 2
0
 private function getBodyAnnotation()
 {
     return $this->annotations->get(Body::NAME);
 }