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->cookie = md5(time());
     $data->data->domain = 'phptest' . time() . '.com';
     $data->data->type = 'test';
     $data->data->page = '10';
     $data->data->limit = '100';
     $data->data->order_id = time();
     $data->data->transfer_id = strtotime('+1 week');
     $shouldMatchNewDataObject = new \stdClass();
     $shouldMatchNewDataObject->attributes = new \stdClass();
     $shouldMatchNewDataObject->cookie = $data->data->cookie;
     $shouldMatchNewDataObject->attributes->domain = $data->data->domain;
     $shouldMatchNewDataObject->attributes->type = $data->data->type;
     $shouldMatchNewDataObject->attributes->page = $data->data->page;
     $shouldMatchNewDataObject->attributes->limit = $data->data->limit;
     $shouldMatchNewDataObject->attributes->order_id = $data->data->order_id;
     $shouldMatchNewDataObject->attributes->transfer_id = $data->data->transfer_id;
     $ns = new GetNotes();
     $newDataObject = $ns->convertDataObject($data);
     $this->assertTrue($newDataObject == $shouldMatchNewDataObject);
 }