public function testSetCreatesDir()
 {
     $dir = sys_get_temp_dir() . '/assetic/fscachetest';
     $this->removeDir($dir);
     $cache = new FilesystemCache($dir);
     $cache->set('foo', 'bar');
     $this->assertFileExists($dir . '/foo');
     $this->removeDir($dir);
     rmdir(sys_get_temp_dir() . '/assetic');
 }
 public function testSetCreatesDir()
 {
     $dir = sys_get_temp_dir() . '/assetic/fscachetest';
     $tearDown = function () use($dir) {
         array_map('unlink', glob($dir . '/*'));
         @rmdir($dir);
     };
     $tearDown();
     $cache = new FilesystemCache($dir);
     $cache->set('foo', 'bar');
     $this->assertFileExists($dir . '/foo');
     $tearDown();
 }