sebastianbergmann/phpunit — pull request #519 by pwfisher (2012-03-09 00:39:05+00:00)
Title: Support empty content in tag matcher

PHPUnit_Util_XML.php line 625:

+ // match empty string
+ else if ($options['content'] === '') {
+ if (self::getNodeText($node) !== '') {
+ $invalid = TRUE;
+ }
+ }
+

Without this, we get the PHP error "strstr(): Empty delimiter" when $needle == ''.