public function testReturnFalseIfFileNotExistsOnIsStore() { $filesystemMock = $this->createFilesystemMock(); $filesystemMock->expects($this->once())->method('exists')->with('/aWebRoot/aCachePrefix/aFilter/aPath')->will($this->returnValue(false)); $resolver = new WebPathResolver($filesystemMock, new RequestContext(), '/aWebRoot', 'aCachePrefix'); $this->assertFalse($resolver->isStored('aPath', 'aFilter')); }
public function testReturnFalseIfIsNotFile() { $resolver = new WebPathResolver($this->createFilesystemMock(), new RequestContext(), $this->basePath, 'aCachePrefix'); $this->assertFalse($resolver->isStored('', 'aFilter')); }