Пример #1
0
 /**
  * @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());
 }
Пример #2
0
 /**
  * @param $key
  * @return string
  */
 public function getFilePath($key)
 {
     return $this->context->getCachePath() . sprintf(self::FILENAME_FORMAT, md5($key));
 }