Releases: phpspec/prophecy
Releases · phpspec/prophecy
1.7.1
- Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta)
- Allow reflection-docblock v4 (thanks @GrahamCampbell)
- Check method predictions only once (thanks @dontub)
- Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany)
1.7.0
- Add full PHP 7.1 Support (thanks @prolic)
- Allow
sebastian/comparator ^2.0(thanks @sebastianbergmann) - Allow
sebastian/recursion-context ^3.0(thanks @sebastianbergmann) - Allow
\Errorinstances inThrowPromise(thanks @jameshalsall) - Support
phpspec/phpspect ^3.2(thanks @Sam-Burns) - Fix failing builds (thanks @Sam-Burns)
1.6.2
- Added support for detecting @method on interfaces that the class itself implements, or when the stubbed class is an interface itself (thanks @Seldaek)
- Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann)
- Added testing on PHP 7.1 on Travis (thanks @danizord)
- Fixed the usage of the phpunit comparator (thanks @Anyqax)
v1.6.1
v1.6.0
- Add Variadics support (thanks @pamil)
- Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker)
- Add ApproximateValueToken (thanks @dantleech)
- Add support for 'self' and 'parent' return type (thanks @bendavies)
- Add __invoke to allowed reflectable methods list (thanks @ftrrtf)
- Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari)
- Specify the required php version for composer (thanks @jakzal)
- Exclude 'args' in the generated backtrace (thanks @oradwell)
- Fix code generation for scalar parameters (thanks @trowski)
- Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery)
- Fix phpdoc for magic methods (thanks @Tobion)
- Fix PhpDoc for interfaces usage (thanks @ImmRanneft)
- Prevent final methods from being manually extended (thanks @kamioftea)
- Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)
v1.5.0 (PHP7 support)
v1.4.1
v1.4.0
- Fixed errors in return type phpdocs (thanks @sobit)
- Fixed stringifying of hash containing one value (thanks @avant1)
- Improved clarity of method call expectation exception (thanks @dantleech)
- Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart)
- Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty)
- Support for mocking classes with methods that return references (thanks @edsonmedina)
- Improved object comparison (thanks @whatthejeff)
- Adopted '^' in composer dependencies (thanks @GrahamCampbell)
- Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff)
- Magic methods are now filtered for keywords (thanks @seagoj)
- More readable errors for failure when expecting single calls (thanks @dantleech)
Spies fix
HHVM compatibility
- Added support for HHVM