You are here

public static function PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString in Zircon Profile 8

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

Asserts that two XML documents are equal.

@since Method available since Release 3.1.0

Parameters

string $expectedXml:

string $actualXml:

string $message:

3 calls to PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString()
Framework_AssertTest::testAssertXmlStringEqualsXmlString in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString
Framework_AssertTest::testAssertXmlStringEqualsXmlString2 in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@expectedException PHPUnit_Framework_Exception @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString @ticket 1860
Framework_AssertTest::testAssertXmlStringEqualsXmlString3 in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString @ticket 1860

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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