You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a test to reproduce the reported regression. The test
builds a prophecy for a method which has an optional parameter. The
prophecy doesn't expect that the optional parameter will be called.
Calling this mock without the optional parameter (as expected) will
result in an unexpected call with the optional parameter:
1) phpmock\prophecy\RegressionTest::expectingWithoutOptionalParameter
Prophecy\Exception\Call\UnexpectedCallException: Method call:
- call("arg1", "optional")
on Double\phpmock\prophecy\OptionalParameterHolder\P15 was not
expected, expected calls were:
- call(exact("arg1"))
See also #1
0 commit comments