assertXmlStringNotEqualsXmlString() 공개 정적인 메소드

Asserts that two XML documents are not equal.
public static assertXmlStringNotEqualsXmlString ( string $expectedXml, string $actualXml, string $message = '' )
$expectedXml string
$actualXml string
$message string
예제 #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);
}
예제 #2
0
파일: REST.php 프로젝트: corcre/elabftw
 /**
  * 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);
 }
예제 #3
0
파일: REST.php 프로젝트: surjit/Codeception
 /**
  * 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);
 }
예제 #4
0
 public function isNotEqualToXmlString($xmlString)
 {
     Assert::assertXmlStringNotEqualsXmlString($xmlString, $this->actual, $this->description);
     return $this;
 }
예제 #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());
 }
예제 #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;
 }