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