public static function PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile()
Asserts that two XML documents are not equal.
@since Method available since Release 3.3.0
Parameters
string $expectedFile:
string $actualXml:
string $message:
1 call to PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile()
- Framework_AssertTest::testXmlStringNotEqualsXmlFile in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 1747
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '') {
$expected = PHPUnit_Util_XML::loadFile($expectedFile);
$actual = PHPUnit_Util_XML::load($actualXml);
self::assertNotEquals($expected, $actual, $message);
}