sebastianbergmann / phpunit-mock-objects

Mock Object library for PHPUnit
https://phpunit.de/
Other
4.97k stars 153 forks source link

Malformed withConsecutive doesn't raise errors #359

Closed Slamdunk closed 6 years ago

Slamdunk commented 7 years ago

Each withConsecutive parameter should be an array (or Traversable) in order to be used by Matcher/ConsecutiveParameters.php and I would expect an error if the expectation is malformed.

Instead the test passes, but should fail.

sebastianbergmann commented 6 years ago

This branch has no conflicts with the base branch when rebasing. Please send a new pull request against master in case the pull request is still relevant.