/** * @test * @expectedException \Neos\Flow\Session\Exception\SessionNotStartedException */ public function hasKeyThrowsExceptionIfCalledOnNonStartedSession() { $session = new Session(); $session->hasKey('foo'); }