public function testParseValidXml() { $response = new ResponseCore(array(), $this->validXml, 200); $result = new GetCorsResult($response); $this->assertTrue($result->isOK()); $this->assertNotNull($result->getData()); $this->assertNotNull($result->getRawResponse()); $corsConfig = $result->getData(); $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($corsConfig->serializeToXml())); }