convertDataObject() public method

public convertDataObject ( $dataObject, $newStructure = null )
 /**
  * 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->dns_template = md5(time());
     $shouldMatchNewDataObject = new \stdClass();
     $shouldMatchNewDataObject->attributes = new \stdClass();
     $shouldMatchNewDataObject->attributes->domain = $data->data->domain;
     $shouldMatchNewDataObject->attributes->dns_template = $data->data->dns_template;
     $ns = new DnsReset();
     $newDataObject = $ns->convertDataObject($data);
     $this->assertTrue($newDataObject == $shouldMatchNewDataObject);
 }