Chris@17
|
1 1.8.0 / 2018/08/05
|
Chris@17
|
2 ==================
|
Chris@17
|
3
|
Chris@17
|
4 * Support for void return types without explicit will (@crellbar)
|
Chris@17
|
5 * Clearer error message for unexpected method calls (@meridius)
|
Chris@17
|
6 * Clearer error message for aggregate exceptions (@meridius)
|
Chris@17
|
7 * More verbose `shouldBeCalledOnce` expectation (@olvlvl)
|
Chris@17
|
8 * Ability to double Throwable, or methods that extend it (@ciaranmcnulty)
|
Chris@17
|
9 * [fixed] Doubling methods where class has additional arguments to interface (@webimpress)
|
Chris@17
|
10 * [fixed] Doubling methods where arguments are nullable but default is not null (@webimpress)
|
Chris@17
|
11 * [fixed] Doubling magic methods on parent class (@dsnopek)
|
Chris@17
|
12 * [fixed] Check method predictions only once (@dontub)
|
Chris@17
|
13 * [fixed] Argument::containingString throwing error when called with non-string (@dcabrejas)
|
Chris@17
|
14
|
Chris@17
|
15 1.7.6 / 2018/04/18
|
Chris@13
|
16 ==================
|
Chris@13
|
17
|
Chris@13
|
18 * Allow sebastian/comparator ^3.0 (@sebastianbergmann)
|
Chris@13
|
19
|
Chris@17
|
20 1.7.5 / 2018/02/11
|
Chris@17
|
21 ==================
|
Chris@17
|
22
|
Chris@17
|
23 * Support for object return type hints (thanks @greg0ire)
|
Chris@17
|
24
|
Chris@13
|
25 1.7.4 / 2018/02/11
|
Chris@13
|
26 ==================
|
Chris@13
|
27
|
Chris@13
|
28 * Fix issues with PHP 7.2 (thanks @greg0ire)
|
Chris@13
|
29 * Support object type hints in PHP 7.2 (thanks @@jansvoboda11)
|
Chris@13
|
30
|
Chris@13
|
31 1.7.3 / 2017/11/24
|
Chris@13
|
32 ==================
|
Chris@13
|
33
|
Chris@13
|
34 * Fix SplInfo ClassPatch to work with Symfony 4 (Thanks @gnugat)
|
Chris@13
|
35
|
Chris@12
|
36 1.7.2 / 2017-10-04
|
Chris@12
|
37 ==================
|
Chris@12
|
38
|
Chris@12
|
39 * Reverted "check method predictions only once" due to it breaking Spies
|
Chris@12
|
40
|
Chris@12
|
41 1.7.1 / 2017-10-03
|
Chris@12
|
42 ==================
|
Chris@12
|
43
|
Chris@12
|
44 * Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta)
|
Chris@12
|
45 * Allow reflection-docblock v4 (thanks @GrahamCampbell)
|
Chris@12
|
46 * Check method predictions only once (thanks @dontub)
|
Chris@12
|
47 * Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany)
|
Chris@12
|
48
|
Chris@0
|
49 1.7.0 / 2017-03-02
|
Chris@0
|
50 ==================
|
Chris@0
|
51
|
Chris@0
|
52 * Add full PHP 7.1 Support (thanks @prolic)
|
Chris@0
|
53 * Allow `sebastian/comparator ^2.0` (thanks @sebastianbergmann)
|
Chris@0
|
54 * Allow `sebastian/recursion-context ^3.0` (thanks @sebastianbergmann)
|
Chris@0
|
55 * Allow `\Error` instances in `ThrowPromise` (thanks @jameshalsall)
|
Chris@0
|
56 * Support `phpspec/phpspect ^3.2` (thanks @Sam-Burns)
|
Chris@0
|
57 * Fix failing builds (thanks @Sam-Burns)
|
Chris@0
|
58
|
Chris@0
|
59 1.6.2 / 2016-11-21
|
Chris@0
|
60 ==================
|
Chris@0
|
61
|
Chris@0
|
62 * 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
|
63 * Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann)
|
Chris@0
|
64 * Added testing on PHP 7.1 on Travis (thanks @danizord)
|
Chris@0
|
65 * Fixed the usage of the phpunit comparator (thanks @Anyqax)
|
Chris@0
|
66
|
Chris@0
|
67 1.6.1 / 2016-06-07
|
Chris@0
|
68 ==================
|
Chris@0
|
69
|
Chris@0
|
70 * Ignored empty method names in invalid `@method` phpdoc
|
Chris@0
|
71 * Fixed the mocking of SplFileObject
|
Chris@0
|
72 * Added compatibility with phpdocumentor/reflection-docblock 3
|
Chris@0
|
73
|
Chris@0
|
74 1.6.0 / 2016-02-15
|
Chris@0
|
75 ==================
|
Chris@0
|
76
|
Chris@0
|
77 * Add Variadics support (thanks @pamil)
|
Chris@0
|
78 * Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker)
|
Chris@0
|
79 * Add ApproximateValueToken (thanks @dantleech)
|
Chris@0
|
80 * Add support for 'self' and 'parent' return type (thanks @bendavies)
|
Chris@0
|
81 * Add __invoke to allowed reflectable methods list (thanks @ftrrtf)
|
Chris@0
|
82 * Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari)
|
Chris@0
|
83 * Specify the required php version for composer (thanks @jakzal)
|
Chris@0
|
84 * Exclude 'args' in the generated backtrace (thanks @oradwell)
|
Chris@0
|
85 * Fix code generation for scalar parameters (thanks @trowski)
|
Chris@0
|
86 * Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery)
|
Chris@0
|
87 * Fix phpdoc for magic methods (thanks @Tobion)
|
Chris@0
|
88 * Fix PhpDoc for interfaces usage (thanks @ImmRanneft)
|
Chris@0
|
89 * Prevent final methods from being manually extended (thanks @kamioftea)
|
Chris@0
|
90 * Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)
|
Chris@0
|
91
|
Chris@0
|
92 1.5.0 / 2015-04-27
|
Chris@0
|
93 ==================
|
Chris@0
|
94
|
Chris@0
|
95 * Add support for PHP7 scalar type hints (thanks @trowski)
|
Chris@0
|
96 * Add support for PHP7 return types (thanks @trowski)
|
Chris@0
|
97 * Update internal test suite to support PHP7
|
Chris@0
|
98
|
Chris@0
|
99 1.4.1 / 2015-04-27
|
Chris@0
|
100 ==================
|
Chris@0
|
101
|
Chris@0
|
102 * Fixed bug in closure-based argument tokens (#181)
|
Chris@0
|
103
|
Chris@0
|
104 1.4.0 / 2015-03-27
|
Chris@0
|
105 ==================
|
Chris@0
|
106
|
Chris@0
|
107 * Fixed errors in return type phpdocs (thanks @sobit)
|
Chris@0
|
108 * Fixed stringifying of hash containing one value (thanks @avant1)
|
Chris@0
|
109 * Improved clarity of method call expectation exception (thanks @dantleech)
|
Chris@0
|
110 * Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart)
|
Chris@0
|
111 * Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty)
|
Chris@0
|
112 * Support for mocking classes with methods that return references (thanks @edsonmedina)
|
Chris@0
|
113 * Improved object comparison (thanks @whatthejeff)
|
Chris@0
|
114 * Adopted '^' in composer dependencies (thanks @GrahamCampbell)
|
Chris@0
|
115 * Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff)
|
Chris@0
|
116 * Magic methods are now filtered for keywords (thanks @seagoj)
|
Chris@0
|
117 * More readable errors for failure when expecting single calls (thanks @dantleech)
|
Chris@0
|
118
|
Chris@0
|
119 1.3.1 / 2014-11-17
|
Chris@0
|
120 ==================
|
Chris@0
|
121
|
Chris@0
|
122 * Fix the edge case when failed predictions weren't recorded for `getCheckedPredictions()`
|
Chris@0
|
123
|
Chris@0
|
124 1.3.0 / 2014-11-14
|
Chris@0
|
125 ==================
|
Chris@0
|
126
|
Chris@0
|
127 * Add a way to get checked predictions with `MethodProphecy::getCheckedPredictions()`
|
Chris@0
|
128 * Fix HHVM compatibility
|
Chris@0
|
129 * Remove dead code (thanks @stof)
|
Chris@0
|
130 * Add support for DirectoryIterators (thanks @shanethehat)
|
Chris@0
|
131
|
Chris@0
|
132 1.2.0 / 2014-07-18
|
Chris@0
|
133 ==================
|
Chris@0
|
134
|
Chris@0
|
135 * Added support for doubling magic methods documented in the class phpdoc (thanks @armetiz)
|
Chris@0
|
136 * Fixed a segfault appearing in some cases (thanks @dmoreaulf)
|
Chris@0
|
137 * Fixed the doubling of methods with typehints on non-existent classes (thanks @gquemener)
|
Chris@0
|
138 * Added support for internal classes using keywords as method names (thanks @milan)
|
Chris@0
|
139 * Added IdenticalValueToken and Argument::is (thanks @florianv)
|
Chris@0
|
140 * Removed the usage of scalar typehints in HHVM as HHVM 3 does not support them anymore in PHP code (thanks @whatthejeff)
|
Chris@0
|
141
|
Chris@0
|
142 1.1.2 / 2014-01-24
|
Chris@0
|
143 ==================
|
Chris@0
|
144
|
Chris@0
|
145 * Spy automatically promotes spied method call to an expected one
|
Chris@0
|
146
|
Chris@0
|
147 1.1.1 / 2014-01-15
|
Chris@0
|
148 ==================
|
Chris@0
|
149
|
Chris@0
|
150 * Added support for HHVM
|
Chris@0
|
151
|
Chris@0
|
152 1.1.0 / 2014-01-01
|
Chris@0
|
153 ==================
|
Chris@0
|
154
|
Chris@0
|
155 * Changed the generated class names to use a static counter instead of a random number
|
Chris@0
|
156 * Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein)
|
Chris@0
|
157 * Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein)
|
Chris@0
|
158 * Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty)
|
Chris@0
|
159 * Added support for properties in ObjectStateToken (thanks @adrienbrault)
|
Chris@0
|
160 * Added support for mocking classes with a final constructor (thanks @ciaranmcnulty)
|
Chris@0
|
161 * Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault)
|
Chris@0
|
162 * Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein)
|
Chris@0
|
163 * Added StringContainToken and Argument::containingString() (thanks @peterjmit)
|
Chris@0
|
164 * Added ``shouldNotHaveBeenCalled`` on the MethodProphecy (thanks @ciaranmcnulty)
|
Chris@0
|
165 * Fixed the comparison of objects in ExactValuetoken (thanks @sstok)
|
Chris@0
|
166 * Deprecated ``shouldNotBeenCalled`` in favor of ``shouldNotHaveBeenCalled``
|
Chris@0
|
167
|
Chris@0
|
168 1.0.4 / 2013-08-10
|
Chris@0
|
169 ==================
|
Chris@0
|
170
|
Chris@0
|
171 * Better randomness for generated class names (thanks @sstok)
|
Chris@0
|
172 * Add support for interfaces into TypeToken and Argument::type() (thanks @sstok)
|
Chris@0
|
173 * Add support for old-style (method name === class name) constructors (thanks @l310 for report)
|
Chris@0
|
174
|
Chris@0
|
175 1.0.3 / 2013-07-04
|
Chris@0
|
176 ==================
|
Chris@0
|
177
|
Chris@0
|
178 * Support callable typehints (thanks @stof)
|
Chris@0
|
179 * Do not attempt to autoload arrays when generating code (thanks @MarcoDeBortoli)
|
Chris@0
|
180 * New ArrayEntryToken (thanks @kagux)
|
Chris@0
|
181
|
Chris@0
|
182 1.0.2 / 2013-05-19
|
Chris@0
|
183 ==================
|
Chris@0
|
184
|
Chris@0
|
185 * Logical `AND` token added (thanks @kagux)
|
Chris@0
|
186 * Logical `NOT` token added (thanks @kagux)
|
Chris@0
|
187 * Add support for setting custom constructor arguments
|
Chris@0
|
188 * Properly stringify hashes
|
Chris@0
|
189 * Record calls that throw exceptions
|
Chris@0
|
190 * Migrate spec suite to PhpSpec 2.0
|
Chris@0
|
191
|
Chris@0
|
192 1.0.1 / 2013-04-30
|
Chris@0
|
193 ==================
|
Chris@0
|
194
|
Chris@0
|
195 * Fix broken UnexpectedCallException message
|
Chris@0
|
196 * Trim AggregateException message
|
Chris@0
|
197
|
Chris@0
|
198 1.0.0 / 2013-04-29
|
Chris@0
|
199 ==================
|
Chris@0
|
200
|
Chris@0
|
201 * Improve exception messages
|
Chris@0
|
202
|
Chris@0
|
203 1.0.0-BETA2 / 2013-04-03
|
Chris@0
|
204 ========================
|
Chris@0
|
205
|
Chris@0
|
206 * Add more debug information to CallTimes and Call prediction exception messages
|
Chris@0
|
207 * Fix MethodNotFoundException wrong namespace (thanks @gunnarlium)
|
Chris@0
|
208 * Fix some typos in the exception messages (thanks @pborreli)
|
Chris@0
|
209
|
Chris@0
|
210 1.0.0-BETA1 / 2013-03-25
|
Chris@0
|
211 ========================
|
Chris@0
|
212
|
Chris@0
|
213 * Initial release
|