public function get() { return $this->session->get($this->key); }
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()); }