set() public method

Set key/value pair
public set ( string $key, mixed $value ) : void
$key string
$value mixed
return void
Exemplo n.º 1
0
 /**
  * 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'));
 }