コード例 #1
0
 public function testCanGetAllAnnotations()
 {
     $annotation1 = new MockAnnotation();
     $annotation2 = new MockAnnotation();
     $collection = new AnnotationCollection();
     $collection->addAnnotation($annotation1);
     $collection->addAnnotation($annotation2);
     $this->assertSame(['mock' => [$annotation1, $annotation2]], $collection->getAnnotations());
 }