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

put() public method

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

Usage Example

 public function testPut()
 {
     $session = new CISession($store = m::mock('CI_Session'), 'foo');
     $store->shouldReceive('set_userdata')->with('foo', serialize('bar'))->once();
     $session->put('bar');
 }