|
@@ 455-462 (lines=8) @@
|
| 452 |
|
|
| 453 |
|
$result = $descriptor->writeXml(); |
| 454 |
|
|
| 455 |
|
if ($result instanceof \DOMDocument) { |
| 456 |
|
$actualXml = $result->saveXML(); |
| 457 |
|
} elseif ($result instanceof \DOMElement) { |
| 458 |
|
$actualXml = $result->ownerDocument->saveXML($result); |
| 459 |
|
} else { |
| 460 |
|
$errMsg = 'Incorrect result writeXml'; |
| 461 |
|
throw new \RuntimeException($errMsg); |
| 462 |
|
} |
| 463 |
|
|
| 464 |
|
$expectedXml = $expectedXmlNode->getRaw(); |
| 465 |
|
|
|
@@ 497-504 (lines=8) @@
|
| 494 |
|
|
| 495 |
|
$result = $descriptor->writeXml($dom); |
| 496 |
|
|
| 497 |
|
if ($result instanceof \DOMDocument) { |
| 498 |
|
$actualXml = $result->saveXML(); |
| 499 |
|
} elseif ($result instanceof \DOMElement) { |
| 500 |
|
$actualXml = $result->ownerDocument->saveXML($result); |
| 501 |
|
} else { |
| 502 |
|
$errMsg = 'Incorrect result writeXml'; |
| 503 |
|
throw new \RuntimeException($errMsg); |
| 504 |
|
} |
| 505 |
|
|
| 506 |
|
$expectedXml = $expectedXmlNode->getRaw(); |
| 507 |
|
|