Chris@17: 1.8.0 / 2018/08/05 Chris@17: ================== Chris@17: Chris@17: * Support for void return types without explicit will (@crellbar) Chris@17: * Clearer error message for unexpected method calls (@meridius) Chris@17: * Clearer error message for aggregate exceptions (@meridius) Chris@17: * More verbose `shouldBeCalledOnce` expectation (@olvlvl) Chris@17: * Ability to double Throwable, or methods that extend it (@ciaranmcnulty) Chris@17: * [fixed] Doubling methods where class has additional arguments to interface (@webimpress) Chris@17: * [fixed] Doubling methods where arguments are nullable but default is not null (@webimpress) Chris@17: * [fixed] Doubling magic methods on parent class (@dsnopek) Chris@17: * [fixed] Check method predictions only once (@dontub) Chris@17: * [fixed] Argument::containingString throwing error when called with non-string (@dcabrejas) Chris@17: Chris@17: 1.7.6 / 2018/04/18 Chris@13: ================== Chris@13: Chris@13: * Allow sebastian/comparator ^3.0 (@sebastianbergmann) Chris@13: Chris@17: 1.7.5 / 2018/02/11 Chris@17: ================== Chris@17: Chris@17: * Support for object return type hints (thanks @greg0ire) Chris@17: Chris@13: 1.7.4 / 2018/02/11 Chris@13: ================== Chris@13: Chris@13: * Fix issues with PHP 7.2 (thanks @greg0ire) Chris@13: * Support object type hints in PHP 7.2 (thanks @@jansvoboda11) Chris@13: Chris@13: 1.7.3 / 2017/11/24 Chris@13: ================== Chris@13: Chris@13: * Fix SplInfo ClassPatch to work with Symfony 4 (Thanks @gnugat) Chris@13: Chris@12: 1.7.2 / 2017-10-04 Chris@12: ================== Chris@12: Chris@12: * Reverted "check method predictions only once" due to it breaking Spies Chris@12: Chris@12: 1.7.1 / 2017-10-03 Chris@12: ================== Chris@12: Chris@12: * Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta) Chris@12: * Allow reflection-docblock v4 (thanks @GrahamCampbell) Chris@12: * Check method predictions only once (thanks @dontub) Chris@12: * Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany) Chris@12: Chris@0: 1.7.0 / 2017-03-02 Chris@0: ================== Chris@0: Chris@0: * Add full PHP 7.1 Support (thanks @prolic) Chris@0: * Allow `sebastian/comparator ^2.0` (thanks @sebastianbergmann) Chris@0: * Allow `sebastian/recursion-context ^3.0` (thanks @sebastianbergmann) Chris@0: * Allow `\Error` instances in `ThrowPromise` (thanks @jameshalsall) Chris@0: * Support `phpspec/phpspect ^3.2` (thanks @Sam-Burns) Chris@0: * Fix failing builds (thanks @Sam-Burns) Chris@0: Chris@0: 1.6.2 / 2016-11-21 Chris@0: ================== Chris@0: Chris@0: * Added support for detecting @method on interfaces that the class itself implements, or when the stubbed class is an interface itself (thanks @Seldaek) Chris@0: * Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann) Chris@0: * Added testing on PHP 7.1 on Travis (thanks @danizord) Chris@0: * Fixed the usage of the phpunit comparator (thanks @Anyqax) Chris@0: Chris@0: 1.6.1 / 2016-06-07 Chris@0: ================== Chris@0: Chris@0: * Ignored empty method names in invalid `@method` phpdoc Chris@0: * Fixed the mocking of SplFileObject Chris@0: * Added compatibility with phpdocumentor/reflection-docblock 3 Chris@0: Chris@0: 1.6.0 / 2016-02-15 Chris@0: ================== Chris@0: Chris@0: * Add Variadics support (thanks @pamil) Chris@0: * Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker) Chris@0: * Add ApproximateValueToken (thanks @dantleech) Chris@0: * Add support for 'self' and 'parent' return type (thanks @bendavies) Chris@0: * Add __invoke to allowed reflectable methods list (thanks @ftrrtf) Chris@0: * Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari) Chris@0: * Specify the required php version for composer (thanks @jakzal) Chris@0: * Exclude 'args' in the generated backtrace (thanks @oradwell) Chris@0: * Fix code generation for scalar parameters (thanks @trowski) Chris@0: * Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery) Chris@0: * Fix phpdoc for magic methods (thanks @Tobion) Chris@0: * Fix PhpDoc for interfaces usage (thanks @ImmRanneft) Chris@0: * Prevent final methods from being manually extended (thanks @kamioftea) Chris@0: * Enhance exception for invalid argument to ThrowPromise (thanks @Tobion) Chris@0: Chris@0: 1.5.0 / 2015-04-27 Chris@0: ================== Chris@0: Chris@0: * Add support for PHP7 scalar type hints (thanks @trowski) Chris@0: * Add support for PHP7 return types (thanks @trowski) Chris@0: * Update internal test suite to support PHP7 Chris@0: Chris@0: 1.4.1 / 2015-04-27 Chris@0: ================== Chris@0: Chris@0: * Fixed bug in closure-based argument tokens (#181) Chris@0: Chris@0: 1.4.0 / 2015-03-27 Chris@0: ================== Chris@0: Chris@0: * Fixed errors in return type phpdocs (thanks @sobit) Chris@0: * Fixed stringifying of hash containing one value (thanks @avant1) Chris@0: * Improved clarity of method call expectation exception (thanks @dantleech) Chris@0: * Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart) Chris@0: * Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty) Chris@0: * Support for mocking classes with methods that return references (thanks @edsonmedina) Chris@0: * Improved object comparison (thanks @whatthejeff) Chris@0: * Adopted '^' in composer dependencies (thanks @GrahamCampbell) Chris@0: * Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff) Chris@0: * Magic methods are now filtered for keywords (thanks @seagoj) Chris@0: * More readable errors for failure when expecting single calls (thanks @dantleech) Chris@0: Chris@0: 1.3.1 / 2014-11-17 Chris@0: ================== Chris@0: Chris@0: * Fix the edge case when failed predictions weren't recorded for `getCheckedPredictions()` Chris@0: Chris@0: 1.3.0 / 2014-11-14 Chris@0: ================== Chris@0: Chris@0: * Add a way to get checked predictions with `MethodProphecy::getCheckedPredictions()` Chris@0: * Fix HHVM compatibility Chris@0: * Remove dead code (thanks @stof) Chris@0: * Add support for DirectoryIterators (thanks @shanethehat) Chris@0: Chris@0: 1.2.0 / 2014-07-18 Chris@0: ================== Chris@0: Chris@0: * Added support for doubling magic methods documented in the class phpdoc (thanks @armetiz) Chris@0: * Fixed a segfault appearing in some cases (thanks @dmoreaulf) Chris@0: * Fixed the doubling of methods with typehints on non-existent classes (thanks @gquemener) Chris@0: * Added support for internal classes using keywords as method names (thanks @milan) Chris@0: * Added IdenticalValueToken and Argument::is (thanks @florianv) Chris@0: * Removed the usage of scalar typehints in HHVM as HHVM 3 does not support them anymore in PHP code (thanks @whatthejeff) Chris@0: Chris@0: 1.1.2 / 2014-01-24 Chris@0: ================== Chris@0: Chris@0: * Spy automatically promotes spied method call to an expected one Chris@0: Chris@0: 1.1.1 / 2014-01-15 Chris@0: ================== Chris@0: Chris@0: * Added support for HHVM Chris@0: Chris@0: 1.1.0 / 2014-01-01 Chris@0: ================== Chris@0: Chris@0: * Changed the generated class names to use a static counter instead of a random number Chris@0: * Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein) Chris@0: * Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein) Chris@0: * Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty) Chris@0: * Added support for properties in ObjectStateToken (thanks @adrienbrault) Chris@0: * Added support for mocking classes with a final constructor (thanks @ciaranmcnulty) Chris@0: * Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault) Chris@0: * Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein) Chris@0: * Added StringContainToken and Argument::containingString() (thanks @peterjmit) Chris@0: * Added ``shouldNotHaveBeenCalled`` on the MethodProphecy (thanks @ciaranmcnulty) Chris@0: * Fixed the comparison of objects in ExactValuetoken (thanks @sstok) Chris@0: * Deprecated ``shouldNotBeenCalled`` in favor of ``shouldNotHaveBeenCalled`` Chris@0: Chris@0: 1.0.4 / 2013-08-10 Chris@0: ================== Chris@0: Chris@0: * Better randomness for generated class names (thanks @sstok) Chris@0: * Add support for interfaces into TypeToken and Argument::type() (thanks @sstok) Chris@0: * Add support for old-style (method name === class name) constructors (thanks @l310 for report) Chris@0: Chris@0: 1.0.3 / 2013-07-04 Chris@0: ================== Chris@0: Chris@0: * Support callable typehints (thanks @stof) Chris@0: * Do not attempt to autoload arrays when generating code (thanks @MarcoDeBortoli) Chris@0: * New ArrayEntryToken (thanks @kagux) Chris@0: Chris@0: 1.0.2 / 2013-05-19 Chris@0: ================== Chris@0: Chris@0: * Logical `AND` token added (thanks @kagux) Chris@0: * Logical `NOT` token added (thanks @kagux) Chris@0: * Add support for setting custom constructor arguments Chris@0: * Properly stringify hashes Chris@0: * Record calls that throw exceptions Chris@0: * Migrate spec suite to PhpSpec 2.0 Chris@0: Chris@0: 1.0.1 / 2013-04-30 Chris@0: ================== Chris@0: Chris@0: * Fix broken UnexpectedCallException message Chris@0: * Trim AggregateException message Chris@0: Chris@0: 1.0.0 / 2013-04-29 Chris@0: ================== Chris@0: Chris@0: * Improve exception messages Chris@0: Chris@0: 1.0.0-BETA2 / 2013-04-03 Chris@0: ======================== Chris@0: Chris@0: * Add more debug information to CallTimes and Call prediction exception messages Chris@0: * Fix MethodNotFoundException wrong namespace (thanks @gunnarlium) Chris@0: * Fix some typos in the exception messages (thanks @pborreli) Chris@0: Chris@0: 1.0.0-BETA1 / 2013-03-25 Chris@0: ======================== Chris@0: Chris@0: * Initial release