public function getTags() { if ($this->started !== true) { throw new Exception\SessionNotStartedException('Tried to retrieve tags from a session which has not been started yet.', 1355141501); } return $this->tags; }
/** * @test * @expectedException \Neos\Flow\Session\Exception\SessionNotStartedException */ public function getTagsThrowsExceptionIfCalledOnNonStartedSession() { $session = new Session(); $session->getTags(); }