Esempio n. 1
0
 public function testGetCacheFile()
 {
     $this->string(testedClass::getCacheFile())->isEqualTo(rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . sprintf(testedClass::defaultCacheFileName, md5($this->getTestedClassPath())))->if(testedClass::setCacheFile($cacheFile = uniqid()))->then->string(testedClass::getCacheFile())->isEqualTo($cacheFile);
 }