Releases: phpspec/prophecy
Releases · phpspec/prophecy
1.12.0
- [added] PHP 8 support [@ciaranmcnulty]
- [added] Argument::in() and Argument::notIn() [@viniciusalonso]
- [added] Support for union and mixed types [@ciaranmcnulty]
- [fixed] Issues caused by introduction of named parameters [@ciaranmcnulty]
- [fixed] Issues caused by stricter rounding [@ciaranmcnulty]
1.11.1
1.11.0
- [changed] dropped support for PHP versions earlier than 7.2 (@ciaranmcnulty)
- [fixed] removed use of Reflection APIs deprecated in PHP 8.0 (@Ayesh)
1.10.3
v1.10.2
[added] support for new versions of (@sebastianbergmann)
1.10.1
- [fixed] identical callables no longer match as arguments (@ciaranmcnulty)
1.10.0
- [added] shouldHaveBeenCalled evaluation happens later so un-stubbed calls don't throw (@elvetemedve)
- [added] methods can now be doubled case-insensitively to match PHP semantics (@michalbundyra)
- [fixed] reduced memory usage by optimising CachedDoubler (@DonCallisto)
- [fixed] removed fatal error nesting level when comparing large objects (@scroach)
1.9.0
- [added] Add willYield feature to Method Prophecy(@tkotosz)
- [fixed] Allow MethodProphecy::willThrow() to accept Throwable as string (@timoschinkel )
- [fixed] Allow new version of phpdocumentor/reflection-docblock (@ricpelo)
1.8.1
1.8.0
- Support for void return types without explicit will (@crellbar)
- Clearer error message for unexpected method calls (@meridius)
- Clearer error message for aggregate exceptions (@meridius)
- More verbose
shouldBeCalledOnce
expectation (@olvlvl) - Ability to double Throwable, or methods that extend it (@ciaranmcnulty)
- [fixed] Doubling methods where class has additional arguments to interface (@webimpress)
- [fixed] Doubling methods where arguments are nullable but default is not null (@webimpress)
- [fixed] Doubling magic methods on parent class (@dsnopek)
- [fixed] Check method predictions only once (@dontub)
- [fixed] Argument::containingString throwing error when called with non-string (@dcabrejas)