public function testDestroy() { $this->handler->write('456', 'data'); $this->handler->destroy('123'); $this->assertEquals('data', $this->handler->read('456')); $this->handler->destroy('456'); $this->assertEmpty($this->handler->read('456')); }
/** * Deletes a session from persistent storage. * Deliberately leaves session data in memory intact. */ private function destroy() { $this->handler->destroy($this->id); }