hasKey() public method

Returns TRUE if a session data entry $key is available.
public hasKey ( string $key ) : boolean
$key string Entry identifier of the session data
return boolean
 /**
  * @test
  * @expectedException \Neos\Flow\Session\Exception\SessionNotStartedException
  */
 public function hasKeyThrowsExceptionIfCalledOnNonStartedSession()
 {
     $session = new Session();
     $session->hasKey('foo');
 }