Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #520 from pwfisher/patch-2

  • Loading branch information...
commit 34884314a740f425f85c89e6465f1a309357ab4b 2 parents 9d17f18 + f48cb8b
Sebastian Bergmann authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 PHPUnit/Util/XML.php
7 PHPUnit/Util/XML.php
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.