PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile PHP Method

assertXmlStringNotEqualsXmlFile() public static method

Asserts that two XML documents are not equal.
public static assertXmlStringNotEqualsXmlFile ( string $expectedFile, string $actualXml, string $message = '' )
$expectedFile string
$actualXml string
$message string
    public static function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '')
    {
        $expected = PHPUnit_Util_XML::loadFile($expectedFile);
        $actual = PHPUnit_Util_XML::load($actualXml);
        static::assertNotEquals($expected, $actual, $message);
    }

Usage Example

Example #1
0
/**
 * Asserts that two XML documents are not equal.
 *
 * @param  string $expectedFile
 * @param  string $actualXml
 * @param  string $message
 * @since  Method available since Release 3.3.0
 */
function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '')
{
    return PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message);
}
All Usage Examples Of PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile
PHPUnit_Framework_Assert