private function TagadelicTaxonomyTestCase::assertHasXpath in Tagadelic 7.2
assertHasXpath Asserts the existence of an xpath
@scope private @returns Boolean Boolean Assertion-result
3 calls to TagadelicTaxonomyTestCase::assertHasXpath()
File
- tests/
tagadelic_taxonomy.test, line 275
Class
Code
private function assertHasXpath($xpath, $message = '', $group = 'Other') {
if (empty($message)) {
$message = "xpath '{$xpath}' not found.";
}
$xpath = $this
->xpath($xpath);
$truthiness = count($xpath) > 0;
return $this
->assertTrue($truthiness, $message, $group);
}