You are here

public static function PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile()

Asserts that two XML documents are equal.

@since Method available since Release 3.3.0

Parameters

string $expectedFile:

string $actualXml:

string $message:

1 call to PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile()
Framework_AssertTest::testAssertXmlStringEqualsXmlFile in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 1731

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '') {
  $expected = PHPUnit_Util_XML::loadFile($expectedFile);
  $actual = PHPUnit_Util_XML::load($actualXml);
  self::assertEquals($expected, $actual, $message);
}