diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a8453..7d34ad0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,26 @@ # Phony for PHPUnit changelog -## Next release +## 3.0.0 (2017-09-29) + +This release uses *Phony* `2.x` under the hood. Check out the +[migration guide][migration-2] for *Phony* `2.x`, which also applies to this +release. -- **[BC BREAK]** PHP 5 is no longer supported ([#216]). - **[BC BREAK]** HHVM is no longer supported ([#216], [#219]). - **[BC BREAK]** Removed `inOrderSequence`, `checkInOrderSequence`, `anyOrderSequence`, and `checkAnyOrderSequence` from the facade ([#215]). +- **[BC BREAK]** Stubs created outside of a mock now have their "self" value set + to the stub itself, instead of the stubbed callback ([#226]). - **[NEW]** Implemented `anInstanceOf()` ([#220]). - **[NEW]** Implemented `emptyValue()` ([#218]). - **[IMPROVED]** Support for PHP 7.2 features, including the `object` typehint ([#224]). +- **[IMPROVED]** Improved the error message produced when a default return value + cannot be produced, because the return type is a final class ([#228]). - **[IMPROVED]** Reduced the amount of output generated when mocks, stubs, and spies are encountered by `var_dump()` ([#223]). +[migration-2]: https://github.com/eloquent/phony/blob/2.0.0/MIGRATING.md#migrating-from-1x-to-2x [#215]: https://github.com/eloquent/phony/issues/215 [#216]: https://github.com/eloquent/phony/issues/216 [#218]: https://github.com/eloquent/phony/issues/218 @@ -20,6 +28,8 @@ [#220]: https://github.com/eloquent/phony/issues/220 [#223]: https://github.com/eloquent/phony/issues/223 [#224]: https://github.com/eloquent/phony/issues/224 +[#226]: https://github.com/eloquent/phony/issues/226 +[#228]: https://github.com/eloquent/phony/issues/228 ## 2.0.0 (2017-04-24) diff --git a/composer.json b/composer.json index 8a4c8a6..e2147a4 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=7", - "eloquent/phony": "dev-php72", + "eloquent/phony": "^2", "phpunit/phpunit": "^6" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 1bb1248..7247e13 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "6a0158412ba654e7507de96df5940df5", + "content-hash": "658e3bff0eeb15ed535a554c5549d867", "packages": [ { "name": "doctrine/instantiator", @@ -62,16 +62,16 @@ }, { "name": "eloquent/phony", - "version": "dev-php72", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/eloquent/phony.git", - "reference": "4dae2a1fbe78ae8b9aced2f19e63842bc7344a84" + "reference": "96c6618d54b21b01eacf4b8aea5a279496b466f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/eloquent/phony/zipball/4dae2a1fbe78ae8b9aced2f19e63842bc7344a84", - "reference": "4dae2a1fbe78ae8b9aced2f19e63842bc7344a84", + "url": "https://api.github.com/repos/eloquent/phony/zipball/96c6618d54b21b01eacf4b8aea5a279496b466f6", + "reference": "96c6618d54b21b01eacf4b8aea5a279496b466f6", "shasum": "" }, "require": { @@ -119,7 +119,7 @@ "stubbing", "test" ], - "time": "2017-09-21T12:58:27+00:00" + "time": "2017-09-29T01:22:33+00:00" }, { "name": "myclabs/deep-copy", @@ -1881,16 +1881,16 @@ }, { "name": "paragonie/random_compat", - "version": "v2.0.10", + "version": "v2.0.11", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", - "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d" + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/634bae8e911eefa89c1abfbf1b66da679ac8f54d", - "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", "shasum": "" }, "require": { @@ -1925,7 +1925,7 @@ "pseudorandom", "random" ], - "time": "2017-03-13T16:27:32+00:00" + "time": "2017-09-27T21:40:39+00:00" }, { "name": "psr/log", @@ -2587,9 +2587,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "eloquent/phony": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": {