コード例 #1
0
ファイル: REST.php プロジェクト: corcre/elabftw
 /**
  * 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');
 }
コード例 #2
0
ファイル: REST.php プロジェクト: surjit/Codeception
 /**
  * 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');
 }