Beispiel #1
0
 public function testOxUtilsToFileCacheFromFileCache()
 {
     $sValue = 'agentūЛитовfür';
     $sName = md5(time());
     $oUtils = new oxUtils();
     $oUtils->toFileCache($sName, $sValue);
     //double check
     $this->assertEquals($sValue, $oUtils->fromFileCache($sName));
     $this->assertTrue(strcmp($oUtils->fromFileCache($sName), $sValue) === 0);
 }