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

FilteredIteratorTest: improve tests #550

Merged
merged 2 commits into from
Sep 23, 2021

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 17, 2021

FilteredIteratorTest: improve the tests

  • Add docblocks to the test methods.
  • Add @covers tags.
  • Use more specific assertions.
  • Add the $message parameter to each assertion to allow for distinguishing which one failed more easily.
  • Use named data sets and indexed array items in the data provider.

FilteredIteratorTest: add @Covers tags

Note: this class could use some more tests, but at least what's there is now improved.

Related to #497

* Add docblocks to the test methods.
* Add `@covers` tags.
* Use more specific assertions.
* Add the `$message` parameter to each assertion to allow for distinguishing which one failed more easily.
* Use named data sets and indexed array items in the data provider.
@jrfnl jrfnl added this to the 2.0.0 milestone Sep 17, 2021
@jrfnl jrfnl changed the title Feature/filterediterator improve tests FilteredIteratorTest: improve tests Sep 17, 2021
@schlessera schlessera merged commit 9890a2c into develop Sep 23, 2021
@schlessera schlessera deleted the feature/filterediterator-improve-tests branch September 23, 2021 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants