Ouzo\Session::all PHP Method

all() public static method

public static all ( )
    public static function all()
    {
        return self::create()->all();
    }

Usage Example

Beispiel #1
0
 /**
  * @test
  */
 public function shouldGetAllValuesFromSession()
 {
     //given
     Session::set('key', 'value');
     //when
     $all = Session::all();
     //then
     Assert::thatArray($all)->hasSize(1)->containsKeyAndValue(array('key' => 'value'));
 }