/** * 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); }
/** * 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); }
/** * 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); }
public function isNotEqualToXmlString($xmlString) { Assert::assertXmlStringNotEqualsXmlString($xmlString, $this->actual, $this->description); return $this; }
/** * 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()); }
/** * 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; }