コード例 #1
0
 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'));
 }
コード例 #2
0
 public function testReturnFalseIfIsNotFile()
 {
     $resolver = new WebPathResolver($this->createFilesystemMock(), new RequestContext(), $this->basePath, 'aCachePrefix');
     $this->assertFalse($resolver->isStored('', 'aFilter'));
 }