Пример #1
0
 /**
  * Test if can remove a previous stored annotation list.
  */
 public function testRemoveAnnotationList()
 {
     /* @var \com\mohiva\common\lang\AnnotationReflector $class */
     $class = new ReflectionClass(self::TEST_CLASS);
     $docReflector = new ReflectionDocComment($class);
     $annotationList = $docReflector->getAnnotationList();
     $key = new HashKey(Hash::ALGO_SHA1, 'php://temp');
     $adapter = new ResourceAdapter(new TempResourceContainer(TempFileResource::TYPE));
     $container = new AnnotationContainer($adapter, $key);
     $container->store($class->getDocComment(), $annotationList);
     $container->remove($class->getDocComment());
     $this->assertFalse($container->exists($class->getDocComment()));
 }