Пример #1
0
 protected function createMatcher()
 {
     return \Hamcrest\Xml\HasXPath::hasXPath('/users/user');
 }
 /**
  * Wraps <code>$matcher</code> with {@link Hamcrest\Core\IsEqual)
  * if it's not a matcher and the XPath in <code>count()</code>
  * if it's an integer.
  */
 function hasXPath($xpath, $matcher = null)
 {
     return \Hamcrest\Xml\HasXPath::hasXPath($xpath, $matcher);
 }