Permalink
Browse files

Merge pull request #520 from pwfisher/patch-2

  • Loading branch information...
2 parents 9d17f18 + f48cb8b commit 34884314a740f425f85c89e6465f1a309357ab4b @sebastianbergmann committed Mar 9, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 PHPUnit/Util/XML.php
View
7 PHPUnit/Util/XML.php
@@ -622,6 +622,13 @@ public static function findNodes(DOMDocument $dom, array $options, $isHtml = TRU
}
}
+ // match empty string
+ else if ($options['content'] === '') {
+ if (self::getNodeText($node) !== '') {
+ $invalid = TRUE;
+ }
+ }
+
// match by exact string
else if (strstr(self::getNodeText($node), $options['content']) === FALSE) {
$invalid = TRUE;

0 comments on commit 3488431

Please sign in to comment.