Esempio n. 1
0
 /**
  * Try to clear directory ouside of the cache
  *
  * @expectedException \InvalidArgumentException
  */
 public function testClearUnallowedPathCache()
 {
     $event = new ImageEvent($this->request);
     $event->setDispatcher($this->getDispatcher());
     $event->setCacheSubdirectory('../../../..');
     $image = new Image($this->getFileManager());
     $image->clearCache($event);
 }