Releases: bovigo/callmap
Releases · bovigo/callmap
2.0.0 - Return of the Typehints
Changes:
- raised minimum required PHP version to 5.6.0
- added support for PHP 7 return type hints
- added support for argument verification with bovigo/assert
bovigo\callmap\Verification
is now automatically blacklisted in PHPUnit and will not appear in PHPUnit error stacks any more
Upgrade notice:
This release doesn't contain any breaking changes from an API perspective, so it should work by simply upgrading the required version in your composer.son
file. The reason this release bumps the major version is the removal of support for PHP 5.4 and 5.5.
1.1.0 - Enterprise proven.
- added support for argument verification with xp-framework/core
1.0.0 - Stability is a virtue, too
- fixed conversion spec in parameter error message
0.6.1 - Minor minor bug fixes
- fixed bug with optional default value null in user defined classes
0.6.0 - Minor bug fixes
- failing argument verification now also lists the name of the argument, not just its position, fixes #2
- fixed bug with optional array parameters
onConsecutiveCalls()
now falls back to the default return value in case a method gets invoked more often than results are defined- fixed #4:
onConsecutiveCalls()
should allow callables which are executed - fixed #5: returning a callable requires another callable by providing
bovigo\callmap\wrap()
0.5.0 - Verify all the calls
- added
bovigo\callmap\verify()
as possibility to verify an expected call amount as well as expected arguments - retrieving call for a method which doesn't exist or is not applicable for mapping now throws an
\InvalidArgumentException
- retrieving received arguments for a method which doesn't exist or is not applicable for mapping now throws an
\InvalidArgumentException
- changed API status for
bovigo\callmap\Proxy::callsReceivedFor()
to internal, use verify()->was*() instead - changed API status for
bovigo\callmap\Proxy::argumentsReceivedFor()
to internal, use verify()->received*() instead
0.4.0 - Your argument is invalid
- calling
bovigo\callmap\NewInstance::*()
with a final class now throws an\InvalidArgumentException
- passing a method within the callmap to
bovigo\callmap\Proxy::mapCalls()
which doesn't exist or is not applicable for mapping now throws an\InvalidArgumentException
0.3.0 - Automate returnSelf()
- added automatic return of instance when return type hint denotes a type within the type hierarchy of the proxied class
- renamed
bovigo\callmap\Proxy::argumentsReceived()
tobovigo\callmap\Proxy::argumentsReceivedFor()
- fixed missing
&
for parameters that must be passed by reference
0.2.0 - Throw on consecutive calls
- added possibility to force a method to throw an exception using
bovigo\callmap\throws()
- added
bovigo\callmap\NewInstance::classname()
to retrieve the name of the generated proxy - added
bovigo\callmap\onConsecutiveCalls()
for passing a list of invocation results, removing api status frombovigo\callmap\InvocationResults
0.1.0 - Initial release.
- Initial release.