/** * @test * @group unit */ public function get_poll_id_returns_correct_id() { $id = new PollId(); $event = new OptionCreatedEvent($id, 'Option name'); $this->assertEquals($id, $event->getPollId()); }