public function test_get_keys()
{
$this->mem->del($this->mem->get_keys());
$this->mem->save(__METHOD__ . ':1', 1);
$this->mem->save(__METHOD__ . ':2', 1);
$this->mem->save(__METHOD__ . ':3', 1);
$arr = array(__METHOD__ . ':1', __METHOD__ . ':2', __METHOD__ . ':3');
$call = $this->mem->get_keys();
sort($call);
sort($arr);
if (is_array($call)) {
$c = count($call);
} else {
$c = 0;
}
$this->assertEquals($call, $arr);
$this->mem->del($call);
$check = $this->mem->get_keys();
$this->assertTrue(empty($check))->addCommentary('not all keys was deleted, Left: ' . count($check) . ' from ' . $c);
}