4 * Reverted "check method predictions only once" due to it breaking Spies
9 * Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta)
10 * Allow reflection-docblock v4 (thanks @GrahamCampbell)
11 * Check method predictions only once (thanks @dontub)
12 * Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany)
17 * Add full PHP 7.1 Support (thanks @prolic)
18 * Allow `sebastian/comparator ^2.0` (thanks @sebastianbergmann)
19 * Allow `sebastian/recursion-context ^3.0` (thanks @sebastianbergmann)
20 * Allow `\Error` instances in `ThrowPromise` (thanks @jameshalsall)
21 * Support `phpspec/phpspect ^3.2` (thanks @Sam-Burns)
22 * Fix failing builds (thanks @Sam-Burns)
27 * Added support for detecting @method on interfaces that the class itself implements, or when the stubbed class is an interface itself (thanks @Seldaek)
28 * Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann)
29 * Added testing on PHP 7.1 on Travis (thanks @danizord)
30 * Fixed the usage of the phpunit comparator (thanks @Anyqax)
35 * Ignored empty method names in invalid `@method` phpdoc
36 * Fixed the mocking of SplFileObject
37 * Added compatibility with phpdocumentor/reflection-docblock 3
42 * Add Variadics support (thanks @pamil)
43 * Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker)
44 * Add ApproximateValueToken (thanks @dantleech)
45 * Add support for 'self' and 'parent' return type (thanks @bendavies)
46 * Add __invoke to allowed reflectable methods list (thanks @ftrrtf)
47 * Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari)
48 * Specify the required php version for composer (thanks @jakzal)
49 * Exclude 'args' in the generated backtrace (thanks @oradwell)
50 * Fix code generation for scalar parameters (thanks @trowski)
51 * Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery)
52 * Fix phpdoc for magic methods (thanks @Tobion)
53 * Fix PhpDoc for interfaces usage (thanks @ImmRanneft)
54 * Prevent final methods from being manually extended (thanks @kamioftea)
55 * Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)
60 * Add support for PHP7 scalar type hints (thanks @trowski)
61 * Add support for PHP7 return types (thanks @trowski)
62 * Update internal test suite to support PHP7
67 * Fixed bug in closure-based argument tokens (#181)
72 * Fixed errors in return type phpdocs (thanks @sobit)
73 * Fixed stringifying of hash containing one value (thanks @avant1)
74 * Improved clarity of method call expectation exception (thanks @dantleech)
75 * Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart)
76 * Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty)
77 * Support for mocking classes with methods that return references (thanks @edsonmedina)
78 * Improved object comparison (thanks @whatthejeff)
79 * Adopted '^' in composer dependencies (thanks @GrahamCampbell)
80 * Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff)
81 * Magic methods are now filtered for keywords (thanks @seagoj)
82 * More readable errors for failure when expecting single calls (thanks @dantleech)
87 * Fix the edge case when failed predictions weren't recorded for `getCheckedPredictions()`
92 * Add a way to get checked predictions with `MethodProphecy::getCheckedPredictions()`
93 * Fix HHVM compatibility
94 * Remove dead code (thanks @stof)
95 * Add support for DirectoryIterators (thanks @shanethehat)
100 * Added support for doubling magic methods documented in the class phpdoc (thanks @armetiz)
101 * Fixed a segfault appearing in some cases (thanks @dmoreaulf)
102 * Fixed the doubling of methods with typehints on non-existent classes (thanks @gquemener)
103 * Added support for internal classes using keywords as method names (thanks @milan)
104 * Added IdenticalValueToken and Argument::is (thanks @florianv)
105 * Removed the usage of scalar typehints in HHVM as HHVM 3 does not support them anymore in PHP code (thanks @whatthejeff)
110 * Spy automatically promotes spied method call to an expected one
115 * Added support for HHVM
120 * Changed the generated class names to use a static counter instead of a random number
121 * Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein)
122 * Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein)
123 * Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty)
124 * Added support for properties in ObjectStateToken (thanks @adrienbrault)
125 * Added support for mocking classes with a final constructor (thanks @ciaranmcnulty)
126 * Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault)
127 * Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein)
128 * Added StringContainToken and Argument::containingString() (thanks @peterjmit)
129 * Added ``shouldNotHaveBeenCalled`` on the MethodProphecy (thanks @ciaranmcnulty)
130 * Fixed the comparison of objects in ExactValuetoken (thanks @sstok)
131 * Deprecated ``shouldNotBeenCalled`` in favor of ``shouldNotHaveBeenCalled``
136 * Better randomness for generated class names (thanks @sstok)
137 * Add support for interfaces into TypeToken and Argument::type() (thanks @sstok)
138 * Add support for old-style (method name === class name) constructors (thanks @l310 for report)
143 * Support callable typehints (thanks @stof)
144 * Do not attempt to autoload arrays when generating code (thanks @MarcoDeBortoli)
145 * New ArrayEntryToken (thanks @kagux)
150 * Logical `AND` token added (thanks @kagux)
151 * Logical `NOT` token added (thanks @kagux)
152 * Add support for setting custom constructor arguments
153 * Properly stringify hashes
154 * Record calls that throw exceptions
155 * Migrate spec suite to PhpSpec 2.0
160 * Fix broken UnexpectedCallException message
161 * Trim AggregateException message
166 * Improve exception messages
168 1.0.0-BETA2 / 2013-04-03
169 ========================
171 * Add more debug information to CallTimes and Call prediction exception messages
172 * Fix MethodNotFoundException wrong namespace (thanks @gunnarlium)
173 * Fix some typos in the exception messages (thanks @pborreli)
175 1.0.0-BETA1 / 2013-03-25
176 ========================