This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
Releases: eloquent/phony
Releases · eloquent/phony
2.0.0
See the migration guide for detailed upgrade information.
- [BC BREAK] PHP 5 is no longer supported (#216).
- [BC BREAK] HHVM is no longer supported (#216, #219).
- [BC BREAK] Removed
inOrderSequence
,checkInOrderSequence
,anyOrderSequence
, andcheckAnyOrderSequence
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).
1.0.1
1.0.0
- [BC BREAK] Third-party test framework integrations have been moved to separate Composer packages (#216).
- [BC BREAK] Dropped support for Counterpart, Mockery, Phake, and Prophecy matchers (#216).
Migrating to 1.x
No code changes should be required, but in some cases, the Composer package name
and version constraint will need to be updated:
- If you're using Phony under PHPUnit:
- Change the Composer package from
eloquent/phony
to
eloquent/phony-phpunit
. - Pick the appropriate version constraint for the version of PHPUnit you
intend to use. See the eloquent/phony-phpunit repository for more
information.
- Change the Composer package from
- If you're using Phony under Peridot:
- If you were using
eloquent/peridot-phony
, change the Composer package to
eloquent/phony-peridot
. - If you were using
eloquent/phony
, no changes are required, but consider
tryingeloquent/phony-peridot
for the added auto-wired mock support. See
the eloquent/phony-peridot repository for more information.
- If you were using
- If you're using Phony under SimpleTest, change the Composer package from
eloquent/phony
toeloquent/phony-simpletest
. - If you're using Phony under Pho, change the Composer package from
eloquent/phony
toeloquent/phony-pho
. - For other frameworks, or standalone use, no changes are required.