예제 #1
0
 /**
  * @return CorsConfig
  */
 protected function parseDataFromResponse()
 {
     $content = $this->rawResponse->body;
     $config = new CorsConfig();
     $config->parseFromXml($content);
     return $config;
 }
예제 #2
0
 public function testParseValidXml2()
 {
     $corsConfig = new CorsConfig();
     $corsConfig->parseFromXml($this->validXml2);
     $this->assertEquals($this->cleanXml($this->validXml2), $this->cleanXml($corsConfig->serializeToXml()));
 }