public function testUrlsSupported() { $writer = new Writer('http://3/4/5'); $writer->write(self::Fixture); $path = Writer::getCacheFolderPath() . '3/4/5'; $this->assertTrue(file_exists($path)); $contents = file_get_contents($path); $this->AssertEquals(self::Fixture, $contents); }
protected function cleanStaticApplicationCacheFolder() { $fs = DAO_FileSystem::getInstance(); $list = $fs->getDirContent(EXTASY_PATH . self::CacheFolder); foreach ($list as $fileName) { $fs->delete(Writer::getCacheFolderPath() . $fileName); } }