/** * @test */ public function testCannotJoinIfGameAlreadyRunning() { $exception = MessageParserException::cannotJoinIfGameAlreadyRunning(\Mockery::mock(ParsingUser::class)); $this->assertEquals(MessageParserException::JOIN_GAME_RUNNING, $exception->getCodeName()); }