CHANGES.md (4746B)
1 1.5.0 / 2015-04-27 2 ================== 3 4 * Add support for PHP7 scalar type hints (thanks @trowski) 5 * Add support for PHP7 return types (thanks @trowski) 6 * Update internal test suite to support PHP7 7 8 1.4.1 / 2015-04-27 9 ================== 10 11 * Fixed bug in closure-based argument tokens (#181) 12 13 1.4.0 / 2015-03-27 14 ================== 15 16 * Fixed errors in return type phpdocs (thanks @sobit) 17 * Fixed stringifying of hash containing one value (thanks @avant1) 18 * Improved clarity of method call expectation exception (thanks @dantleech) 19 * Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart) 20 * Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty) 21 * Support for mocking classes with methods that return references (thanks @edsonmedina) 22 * Improved object comparison (thanks @whatthejeff) 23 * Adopted '^' in composer dependencies (thanks @GrahamCampbell) 24 * Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff) 25 * Magic methods are now filtered for keywords (thanks @seagoj) 26 * More readable errors for failure when expecting single calls (thanks @dantleech) 27 28 1.3.1 / 2014-11-17 29 ================== 30 31 * Fix the edge case when failed predictions weren't recorded for `getCheckedPredictions()` 32 33 1.3.0 / 2014-11-14 34 ================== 35 36 * Add a way to get checked predictions with `MethodProphecy::getCheckedPredictions()` 37 * Fix HHVM compatibility 38 * Remove dead code (thanks @stof) 39 * Add support for DirectoryIterators (thanks @shanethehat) 40 41 1.2.0 / 2014-07-18 42 ================== 43 44 * Added support for doubling magic methods documented in the class phpdoc (thanks @armetiz) 45 * Fixed a segfault appearing in some cases (thanks @dmoreaulf) 46 * Fixed the doubling of methods with typehints on non-existent classes (thanks @gquemener) 47 * Added support for internal classes using keywords as method names (thanks @milan) 48 * Added IdenticalValueToken and Argument::is (thanks @florianv) 49 * Removed the usage of scalar typehints in HHVM as HHVM 3 does not support them anymore in PHP code (thanks @whatthejeff) 50 51 1.1.2 / 2014-01-24 52 ================== 53 54 * Spy automatically promotes spied method call to an expected one 55 56 1.1.1 / 2014-01-15 57 ================== 58 59 * Added support for HHVM 60 61 1.1.0 / 2014-01-01 62 ================== 63 64 * Changed the generated class names to use a static counter instead of a random number 65 * Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein) 66 * Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein) 67 * Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty) 68 * Added support for properties in ObjectStateToken (thanks @adrienbrault) 69 * Added support for mocking classes with a final constructor (thanks @ciaranmcnulty) 70 * Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault) 71 * Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein) 72 * Added StringContainToken and Argument::containingString() (thanks @peterjmit) 73 * Added ``shouldNotHaveBeenCalled`` on the MethodProphecy (thanks @ciaranmcnulty) 74 * Fixed the comparison of objects in ExactValuetoken (thanks @sstok) 75 * Deprecated ``shouldNotBeenCalled`` in favor of ``shouldNotHaveBeenCalled`` 76 77 1.0.4 / 2013-08-10 78 ================== 79 80 * Better randomness for generated class names (thanks @sstok) 81 * Add support for interfaces into TypeToken and Argument::type() (thanks @sstok) 82 * Add support for old-style (method name === class name) constructors (thanks @l310 for report) 83 84 1.0.3 / 2013-07-04 85 ================== 86 87 * Support callable typehints (thanks @stof) 88 * Do not attempt to autoload arrays when generating code (thanks @MarcoDeBortoli) 89 * New ArrayEntryToken (thanks @kagux) 90 91 1.0.2 / 2013-05-19 92 ================== 93 94 * Logical `AND` token added (thanks @kagux) 95 * Logical `NOT` token added (thanks @kagux) 96 * Add support for setting custom constructor arguments 97 * Properly stringify hashes 98 * Record calls that throw exceptions 99 * Migrate spec suite to PhpSpec 2.0 100 101 1.0.1 / 2013-04-30 102 ================== 103 104 * Fix broken UnexpectedCallException message 105 * Trim AggregateException message 106 107 1.0.0 / 2013-04-29 108 ================== 109 110 * Improve exception messages 111 112 1.0.0-BETA2 / 2013-04-03 113 ======================== 114 115 * Add more debug information to CallTimes and Call prediction exception messages 116 * Fix MethodNotFoundException wrong namespace (thanks @gunnarlium) 117 * Fix some typos in the exception messages (thanks @pborreli) 118 119 1.0.0-BETA1 / 2013-03-25 120 ======================== 121 122 * Initial release