We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Due to this, assertion of XML is impossible using PHPUnit_Framework_Assert::assertSelect*().
Here is a patch:
diff --git a/PHPUnit/Util/XML.php b/PHPUnit/Util/XML.php index 3e73b76..d369fba 100644 --- a/PHPUnit/Util/XML.php +++ b/PHPUnit/Util/XML.php @@ -522,12 +522,13 @@ class PHPUnit_Util_XML * @since Method available since Release 3.3.0 * @author Mike Naberezny <mike@maintainable.com> * @author Derek DeVries <derek@maintainable.com> + * @author Tobias Schlitt <toby@php.net> */ public static function cssSelect($selector, $content, $actual, $isHtml = TRUE) { $matcher = self::convertSelectToTag($selector, $content); $dom = self::load($actual, $isHtml); - $tags = self::findNodes($dom, $matcher); + $tags = self::findNodes($dom, $matcher, $isHtml); return $tags; }
The text was updated successfully, but these errors were encountered:
Hello Tobias,
please fork PHPUnit, apply the patch, and then send me a pull request.
Thanks! Sebastian
Sorry, something went wrong.
Closed by 95255f0 and #21.
Close sebastianbergmann#20 and sebastianbergmann#21.
95255f0
No branches or pull requests
Due to this, assertion of XML is impossible using PHPUnit_Framework_Assert::assertSelect*().
Here is a patch:
The text was updated successfully, but these errors were encountered: