/** * @return array */ public function testGetRawPayload() { $expectedPayload = []; $event = new RequestEvent($expectedPayload); $actualPayload = $event->getRawPayload(); $this->assertEquals($expectedPayload, $actualPayload); }
/** * @test */ public function it_can_return_a_raw_payload() { $expectedPayload = []; $event = new RequestEvent($expectedPayload); $actualPayload = $event->getRawPayload(); $this->assertEquals($expectedPayload, $actualPayload); }