Skip to content
New issue

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

Fixed the way PHPUnit_Util_Configuration parses listener constructor arguments #594

Merged

Conversation

austinhyde
Copy link
Contributor

Previously, getListenerConfiguration assumed the element
would always be the second element (index 1) because nicely formatted
XML has a DOMText node containing a newline and some space before the
arguments node. Computer-generated XML places the arguments element
immediately after the listener element, so the node would be at index 0,
causing the arguments node to not be found.

Instead, it now searches the entire listener node for argument nodes.

…arguments

Previously, getListenerConfiguration assumed the <arguments> element
would always be the second element (index 1) because nicely formatted
XML has a DOMText node containing a newline and some space before the
arguments node. Computer-generated XML places the arguments element
immediately after the listener element, so the node would be at index 0,
causing the arguments node to not be found. Instead, it now searches
the entire listener node for argument nodes.
@sebastianbergmann sebastianbergmann merged commit d4efc6b into sebastianbergmann:3.6 Jun 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants