/** * @covers Gloubster\Message\Job\AbstractJob::toJson * @covers Gloubster\Message\Job\AbstractJob::fromJson */ public function testSerializeWithData() { $this->object->setError(true); $this->object->setEnd(microtime(true)); $this->object->setProcessDuration(0.12345678); $this->object->setDeliveryDuration(0.9876543209999999); $this->object->setWorkerId('Jean Rochefort'); $this->assertEquals($this->object, Factory::fromJson($this->object->toJson())); }