Example #1
0
 /**
  * @test
  */
 public function serializing_and_deserializing_yields_the_same_object()
 {
     $serializer = new SimpleInterfaceSerializer();
     $readModel = $this->createReadModel();
     $serialized = $serializer->serialize($readModel);
     $deserialized = $serializer->deserialize($serialized);
     $this->assertEquals($readModel, $deserialized);
 }
 /**
  * @test
  */
 public function serializing_and_deserializing_yields_the_same_object()
 {
     $serializer = new SimpleInterfaceSerializer();
     $event = $this->createEvent();
     $serialized = $serializer->serialize($event);
     $deserialized = $serializer->deserialize($serialized);
     $this->assertEquals($event, $deserialized);
 }