예제 #1
0
 /**
  * Test the `setAnnotations` and `getAnnotations` accessors.
  */
 public function testAnnotationAccessors()
 {
     $annotation1 = sha1(microtime(true));
     $annotation2 = sha1(microtime(true));
     $annotations = array(sha1($annotation1) => $annotation1, sha1($annotation2) => $annotation2);
     $docBlock = new PHPDocBlock();
     $docBlock->setAnnotations($annotations);
     $this->assertSame($annotations, $docBlock->getAnnotations());
 }