Asserts that two XML files are equal.
@since Method available since Release 3.1.0
string $expectedFile:
string $actualFile:
string $message:
public static function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '') {
self::assertFileExists($expectedFile);
self::assertFileExists($actualFile);
$expected = new DOMDocument();
$expected->preserveWhiteSpace = FALSE;
$expected
->load($expectedFile);
$actual = new DOMDocument();
$actual->preserveWhiteSpace = FALSE;
$actual
->load($actualFile);
self::assertEquals($expected, $actual, $message);
}