/** * @test */ public function setCachePath_success() { $this->target->setCachePath(sys_get_temp_dir()); $this->assertEquals(sys_get_temp_dir() . DIRECTORY_SEPARATOR, $this->target->getCachePath()); $this->assertTrue($this->target->hasCache()); }
/** * @param $key * @return string */ public function getFilePath($key) { return $this->context->getCachePath() . sprintf(self::FILENAME_FORMAT, md5($key)); }