Cartalyst\Sentinel\Sessions\FuelPHPSession::put PHP Method

put() public method

{@inheritDoc}
public put ( $value )
    public function put($value)
    {
        $this->store->set($this->key, $value);
    }

Usage Example

 public function testPut()
 {
     $session = new FuelPHPSession($store = m::mock('Fuel\\Core\\Session_Driver'), 'foo');
     $store->shouldReceive('set')->with('foo', 'bar')->once();
     $session->put('bar');
 }