public function testClear() { $cache = LocalCache::getInstance(); $id = uniqid('testApc'); $data = uniqid('testApc'); $cache->set($id, $data); $cache->clear(); $dataGet = $cache->get($id); $this->assertNull($dataGet); }
public function testGetInstance() { $cache = LocalCache::getInstance(); $this->assertInstanceOf('\\LocalCache\\LocalCache', $cache); }