/** * @test */ function it_can_be_converted_to_array_and_back() { $commandData = $this->domainEvent->toArray(); $commandCopy = SomethingWasDone::fromArray($commandData); $this->assertEquals($commandData, $commandCopy->toArray()); }