public function testShouldReadSession() { $sessionId = 'some_session_key'; $session = new SessionHandler($this->getConfig()); $data = [321 => microtime(true), 'def' => '678', 'xyz' => 'zyx']; $this->tester->haveInAerospike($sessionId, $data); $this->keys[] = $sessionId; $this->assertEquals($data, $session->read($sessionId)); }
public function testShouldReadSession() { $sessionId = 'abcdef123458'; $session = new SessionHandler($this->getConfig()); $data = serialize([321 => microtime(true), 'def' => '678', 'xyz' => 'zyx']); $this->tester->haveInAerospike($sessionId, base64_encode($data)); $this->keys[] = $sessionId; $expected = $session->read($sessionId); $this->assertEquals($data, $expected); }