Beispiel #1
0
 /**
  *
  * Try to process a file outside of the cache
  *
  * @expectedException \InvalidArgumentException
  */
 public function testProcessImageOutsideValidPath()
 {
     $event = new ImageEvent($this->request);
     $event->setDispatcher($this->getDispatcher());
     $image = new Image($this->getFileManager());
     $event->setCacheFilepath("blablabla.png");
     $event->setCacheSubdirectory("../../../");
     $image->processImage($event);
 }