public function set($key, $value) { $this->start(); // check storage if (!isset($_SESSION[$this->getNamespace()])) { $_SESSION[$this->getNamespace()] = []; } $_SESSION[$this->namespace][$key] = $value; }
/** * Complex test for __unset * * @covers \Bluz\Session\Session::delete() */ public function testUnset() { $this->session->set('moo', 'maz'); $this->session->delete('moo'); $this->assertNull($this->session->get('moo')); }