Skip to content

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 requested a review from schlessera September 17, 2021 12:23
@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.

3 participants