Skip to content

FilteredIteratorTest: improve tests - #550

Merged
schlessera merged 2 commits into
developfrom
feature/filterediterator-improve-tests
Sep 23, 2021
Merged

schlessera merged 2 commits into
developfrom
feature/filterediterator-improve-tests

Conversation

@jrfnl

@jrfnl jrfnl commented Sep 17, 2021

Copy link
Copy Markdown
Member

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.

2 participants