Releases: phpspec/prophecy
Releases · phpspec/prophecy
Improvements and bugfixes
- Changed the generated class names to use a static counter instead of a random number
- Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein)
- Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein)
- Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty)
- Added support for properties in ObjectStateToken (thanks @adrienbrault)
- Added support for mocking classes with a final constructor (thanks @ciaranmcnulty)
- Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault)
- Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein)
- Added StringContainToken and Argument::containingString() (thanks @peterjmit)
- Added
shouldNotHaveBeenCalledon the MethodProphecy (thanks @ciaranmcnulty) - Fixed the comparison of objects in ExactValuetoken (thanks @sstok)
- Deprecated
shouldNotBeenCalledin favor ofshouldNotHaveBeenCalled
1.0.4 - bugfix
1.0.3 - bugfix
- Support callable typehints (thanks @stof)
- Do not attempt to autoload arrays when generating code (thanks @marcodebortoli)
- New ArrayEntryToken (thanks @kagux)
1.0.2 - logical argument operators
1.0.1 - bugfix
- Fix broken UnexpectedCallException message
- Trim AggregateException message
1.0.0 - going stable!
- First stable release
- Improve exception messages
1.0.0 - beta2
- Add more debug information to CallTimes and Call prediction exception messages
- Fix MethodNotFoundException wrong namespace (thanks @gunnarlium)
- Fix some typos in the exception messages (thanks @pborreli)
1.0.0 - beta1
- Initial release