/** * Valid conversion should complete with no * exception thrown. * * * @group validconversion */ public function testValidDataConversion() { $data = json_decode(json_encode($this->validSubmission)); $data->data->domain = 'phptest' . time() . '.com'; $data->data->order_id = time(); $shouldMatchNewDataObject = new \stdClass(); $shouldMatchNewDataObject->attributes = new \stdClass(); $shouldMatchNewDataObject->attributes->domain = $data->data->domain; $shouldMatchNewDataObject->attributes->order_id = $data->data->order_id; $ns = new ProvisioningCancelActivate(); $newDataObject = $ns->convertDataObject($data); $this->assertTrue($newDataObject == $shouldMatchNewDataObject); }