Exemplo n.º 1
0
 public function testGet()
 {
     parent::testGet();
     $this->insertRecordsIntoTable('jlx_cache', array('cache_key', 'cache_data', 'cache_date'), array(array('cache_key' => 'phpIncompleteClassKey', 'cache_data' => 'O:9:"dummyData":2:{s:5:"label";s:23:"test unserializing data";s:11:"description";s:26:"for expecting an exception";}', 'cache_date' => null)));
     $data = jCache::get('phpIncompleteClassKey', $this->profile);
     if (!is_object($data)) {
         $this->pass();
     } else {
         $this->fail();
     }
 }
Exemplo n.º 2
0
 public function testGet()
 {
     parent::testGet();
     //Memcache manages serialization and unserialization process internally. It throws an exception in case of errors
     $this->pass();
 }