Ejemplo n.º 1
0
 /**
  * Checks wheather XML response does not match XPath
  *
  * ```php
  * <?php
  * $I->dontSeeXmlResponseMatchesXpath('//root/user[@id=1]');
  * ```
  * @part xml
  * @param $xpath
  */
 public function dontSeeXmlResponseMatchesXpath($xpath)
 {
     $structure = new XmlStructure($this->response);
     $this->assertTrue($structure->matchesXpath($xpath), 'accidentally matched xpath');
 }
Ejemplo n.º 2
0
 /**
  * Checks wheather XML response does not match XPath
  *
  * ```php
  * <?php
  * $I->dontSeeXmlResponseMatchesXpath('//root/user[@id=1]');
  * ```
  * @part xml
  * @param $xpath
  */
 public function dontSeeXmlResponseMatchesXpath($xpath)
 {
     $structure = new XmlStructure($this->connectionModule->_getResponseContent());
     $this->assertTrue($structure->matchesXpath($xpath), 'accidentally matched xpath');
 }