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

Fix broken tests that do nothing or test wrong classes #193

Merged
merged 1 commit into from Feb 18, 2016
Merged

Conversation

thiemowmde
Copy link
Contributor

The sheer amount of broken tests I found purely by looking at PHPUnit's code coverage report is incredible.

  • deserializableProvider is for testing DispatchableDeserializer::isDeserializerFor, but most classes under test do not implement this interface. All these test cases are nothing but dead code. I'm changing the $this->assertTrue( true ) to something that fails to make this obvious.
  • A lot of providers missed an array().
  • Some tests run with the wrong class.

With this patch, code coverage is at 99.8%. 2 lines are missing. Both are dead code. But I did not wanted to touch this in the same patch.

@thiemowmde thiemowmde added the bug label Feb 16, 2016
@thiemowmde thiemowmde added this to the 2.1.0 milestone Feb 16, 2016
@Benestar
Copy link
Contributor

Thanks for fixing this!

Benestar added a commit that referenced this pull request Feb 18, 2016
Fix broken tests that do nothing or test wrong classes
@Benestar Benestar merged commit d49286a into master Feb 18, 2016
@Benestar Benestar deleted the brokenTests branch February 18, 2016 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants