public function testCache()
 {
     $cache = new FilesystemCache(sys_get_temp_dir());
     $this->assertFalse($cache->has('foo'));
     $cache->set('foo', 'bar');
     $this->assertEquals('bar', $cache->get('foo'));
     $this->assertTrue($cache->has('foo'));
     $cache->remove('foo');
     $this->assertFalse($cache->has('foo'));
 }
 public function testWithExistingDir()
 {
     $dir = sys_get_temp_dir() . '/assetic_filesystemcachetest_testcache';
     $this->removeDir($dir);
     mkdir($dir);
     $cache = new FilesystemCache($dir);
     $this->assertFalse($cache->has('foo'));
     $cache->set('foo', 'bar');
     $this->assertEquals('bar', $cache->get('foo'));
     $this->assertTrue($cache->has('foo'));
     $cache->remove('foo');
     $this->assertFalse($cache->has('foo'));
     $this->removeDir($dir);
 }