protected function createTemporaryFile() { $file = sprintf("%s/cachetool-%s.php", $this->tempDir, uniqid()); touch($file); chmod($file, 0666); return $file; }