assertXmlStringNotEqualsXmlString() public static method

Asserts that two XML documents are not equal.
public static assertXmlStringNotEqualsXmlString ( string $expectedXml, string $actualXml, string $message = '' )
$expectedXml string
$actualXml string
$message string
Example #1
0
/**
 * Asserts that two XML documents are not equal.
 *
 * @param  string $expectedXml
 * @param  string $actualXml
 * @param  string $message
 * @since  Method available since Release 3.1.0
 */
function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '')
{
    return PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message);
}
Example #2
0
 /**
  * Checks XML response does not equal to provided XML.
  * Comparison is done by canonicalizing both xml`s.
  *
  * Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
  *
  * @param $xml
  * @part xml
  */
 public function dontSeeXmlResponseEquals($xml)
 {
     \PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString($this->response, $xml);
 }
Example #3
0
 /**
  * Checks XML response does not equal to provided XML.
  * Comparison is done by canonicalizing both xml`s.
  *
  * Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
  *
  * @param $xml
  * @part xml
  */
 public function dontSeeXmlResponseEquals($xml)
 {
     \PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString($this->connectionModule->_getResponseContent(), $xml);
 }
Example #4
0
 public function isNotEqualToXmlString($xmlString)
 {
     Assert::assertXmlStringNotEqualsXmlString($xmlString, $this->actual, $this->description);
     return $this;
 }
Example #5
0
 /**
  * Checks XML response equals provided XML.
  * Comparison is done by canonicalizing both xml`s.
  *
  * Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
  *
  * @param $xml
  */
 public function dontSeeSoapResponseEquals($xml)
 {
     $xml = SoapUtils::toXml($xml);
     \PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString($this->getXmlResponse()->C14N(), $xml->C14N());
 }
Example #6
0
 /**
  * Expect that two XML documents are not equal.
  *
  * @param string $expectedXml
  * @param string $message
  *
  * @return Expect
  */
 public function notToEqualXml($expectedXml, $message = '')
 {
     Assert::assertXmlStringNotEqualsXmlString($expectedXml, $this->value, $message);
     return $this;
 }