Cartalyst\Sentinel\Sessions\IlluminateSession::get PHP 메소드

get() 공개 메소드

{@inheritDoc}
public get ( )
    public function get()
    {
        return $this->session->get($this->key);
    }

Usage Example

예제 #1
0
 public function testGet()
 {
     $session = new IlluminateSession($store = m::mock('Illuminate\\Session\\Store'), 'foo');
     $store->shouldReceive('get')->with('foo')->once()->andReturn('bar');
     $this->assertEquals('bar', $session->get());
 }