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

Failure message ignored in assertSelectCount #47

Closed
nualoy opened this issue Oct 15, 2010 · 2 comments
Closed

Failure message ignored in assertSelectCount #47

nualoy opened this issue Oct 15, 2010 · 2 comments

Comments

@nualoy
Copy link

nualoy commented Oct 15, 2010

Example:

$this->assertSelectCount(
'textarea[name=somename]', 1, $html,
'The generated textarea name is missing or incorrect!'
);

If the selector doesn't match anything, the output message is just "Failed asserting that integer:0 matches expected integer:1."

The parameter $message is lost when calling assertEquals from assertSelectEquals.

@whatthejeff
Copy link
Contributor

This is fixed by #49.

@sebastianbergmann
Copy link
Owner

Closed by ad2166a.

igorw pushed a commit to igorw-forks/phpunit that referenced this issue Aug 24, 2011
This issue was closed.
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

No branches or pull requests

3 participants