/**
  * @return CnameConfig
  */
 protected function parseDataFromResponse()
 {
     $content = $this->rawResponse->body;
     $config = new CnameConfig();
     $config->parseFromXml($content);
     return $config;
 }
 public function testToXml()
 {
     $cnameConfig = new CnameConfig();
     $cnameConfig->addCname('www.foo.com');
     $cnameConfig->addCname('bar.com');
     $xml = $cnameConfig->serializeToXml();
     $comp = new CnameConfig();
     $comp->parseFromXml($xml);
     $cnames1 = $cnameConfig->getCnames();
     $cnames2 = $comp->getCnames();
     $this->assertEquals(count($cnames1), count($cnames2));
     $this->assertEquals(count($cnames1[0]), count($cnames2[0]));
     $this->assertEquals(1, count($cnames1[0]));
     $this->assertEquals($cnames1[0]['Domain'], $cnames2[0]['Domain']);
 }