Changeset 335 for cleversvg/trunk/tests/csBaseTestCase.class.php
- Timestamp:
- 03/02/08 15:12:12 (4 years ago)
- Files:
-
- 1 modified
-
cleversvg/trunk/tests/csBaseTestCase.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cleversvg/trunk/tests/csBaseTestCase.class.php
r334 r335 48 48 { 49 49 throw new PHPUnit_Framework_ExpectationFailedException( 50 sprintf('XPath query "%s" does not match value "%s" . Source: %s',51 $xpath_query, $value, "\n".$doc->toXML()));50 sprintf('XPath query "%s" does not match value "%s", but "%s". Source: %s', 51 $xpath_query, $value, $attr_value, "\n".$doc->toXML())); 52 52 } 53 53 return true; 54 } 55 56 protected function assertNodeExists($doc, $xpath_query) 57 { 58 $result = $this->documentXpath($doc, $xpath_query); 59 return !is_null($result->item(0)); 60 } 61 62 protected function assertNodeDoesNotExist($doc, $xpath_query) 63 { 64 return !$this->assertNodeExists($doc, $xpath_query); 54 65 } 55 66
