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

a test in the MootoolsEngineHelper testcase was ignoring asserts #196

Conversation

sarahhenkens
Copy link

In the test for MootoolsEngineHelper::drop() there is a expectError(). Because of this assert the asserts on the next lines are never run and never tests the actual drop() function.

I fixed this by splitting them up and moving the error checking assert into its own test function.

@markstory
Copy link
Member

Thanks for the patch. expectError should probably be removed from all the tests in 2.0. The PHPUnit annotations are much better for this use.

@sarahhenkens
Copy link
Author

What about the idea of helpers throwing exceptions?

This function could throw a MissingParameterException

@markstory
Copy link
Member

I think an exception here makes sense.

@markstory
Copy link
Member

Landed in [aa45452]. I left the trigger_error as is for now, but it could be an exception.

@markstory markstory closed this Sep 10, 2011
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.

None yet

2 participants