public function seeInSession($key, $value = null)
    {
        if (is_array($key)) {
            $this->seeSessionHasValues($key);
            return;
        }

        if (is_null($value)) {
            $this->assertTrue($this->app['session']->has($key));
        } else {
            $this->assertEquals($value, $this->app['session']->get($key));
        }
    }
public function seeInSession($key, $value = null)
    {
        if (is_array($key)) {
            $this->seeSessionHasValues($key);
            return;
        }

        if (is_null($value)) {
            $this->assertTrue($this->app['session']->has($key));
        } else {
            $this->assertEquals($value, $this->app['session']->get($key));
        }
    }
public function seeInSession ( $ key , $ value = null ) { if ( is_array ( $ key ) ) { $ this -> seeSessionHasValues ( $ key ) ; return ; } if ( is_null ( $ value ) ) { $ this -> assertTrue ( $ this -> app [ 'session' ] -> has ( $ key ) ) ; } else { $ this -> assertEquals ( $ value , $ this -> app [ 'session' ] -> get ( $ key ) ) ; } }
Assert that the session has a given list of values.

@param  string|array $key
@param  mixed $value
@return void
Assert that the session has a given list of values .