public function testGetBrowserPath()
 {
     $absolute = 'http://example.com' . $this->targetPath;
     $relative = $this->targetPath;
     $resolver = $this->getMockResolver();
     $resolver->expects($this->at(0))->method('getBrowserPath')->with($this->path, $this->filter, true)->will($this->returnValue($absolute));
     $resolver->expects($this->at(1))->method('getBrowserPath')->with($this->path, $this->filter, false)->will($this->returnValue($relative));
     $cacheResolver = new CacheResolver(new MemoryCache(), $resolver);
     $this->assertEquals($absolute, $cacheResolver->getBrowserPath($this->path, $this->filter, true));
     $this->assertEquals($absolute, $cacheResolver->getBrowserPath($this->path, $this->filter, true));
     $this->assertEquals($relative, $cacheResolver->getBrowserPath($this->path, $this->filter, false));
     $this->assertEquals($relative, $cacheResolver->getBrowserPath($this->path, $this->filter, false));
 }