/** * @expectedException Exception * @expectedExceptionCode 404 */ public function testGetParticipantsNonExistent() { $tablesMockup = $this->createTablesMockup($this->adminSettingsMockup['tableIds'], array(array('raffleUUIDV5Mockup', null, null, null, null, null)), array(array('raffleUUIDV5Mockup', 'participantId', null, null), array('anotherRaffleUUIDV5Mockup', 'participantId', null, null), array('raffleUUIDV5Mockup', 'anotherParticipantId', null, null)), array(), array()); $raffleDAO = new RaffleDAOMockup($this->adminSettingsMockup['tableIds']); $raffleDAO->tablesMockup = $tablesMockup; $raffle = new Raffle($raffleDAO, $this->userIdMockup, false); $raffle->getParticipants('nonExistentRaffleIdMockup'); }