Exemplo n.º 1
0
 function testSafeWrite()
 {
   Fs :: safeWrite(VAR_DIR . '/test', 'test');
   $this->assertEqual('test',
                      file_get_contents(VAR_DIR . '/test'));
 }
 function put($key, &$value, $group = 'default')
 {
   $file = $this->_getCacheFilePath($group, $key);
   Fs :: safeWrite($file, $this->_makePhpContent($value));
 }