Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phony Laravel Package

eloquent/phony

View on GitHub
Deep Wiki
Context7
5.0.2
  • [FIXED] An exception is no longer thrown under non-CLI SAPIs when detecting ANSI color support (#252 - thanks @yanneg).
5.0.1
  • [FIXED] Functions and methods with "unavailable" default values no longer cause exceptions to be thrown when attempting to determine the default value.
5.0.0
  • [BC BREAK] PHP 7.2 is no longer supported.
  • [NEW] Added support for PHP 8 union types (#250).
  • [NEW] Added support for PHP 8 false types (#250).
  • [NEW] Added support for PHP 8 mixed types (#250).
  • [NEW] Added support for PHP 8 static return types (#250).
  • [NEW] Added support for parent types (#250).

Known issues

  • PHP 8 named arguments are not supported.
  • No guarantees are made about which specific value will be returned from a stub (or mock method) with a union return type, when no explicit return value is specified. The value may differ depending on the order in which the union type's members appear.
4.0.1
  • [FIXED] Nullable variadics can now be mocked (#248 - thanks @keksa).
4.0.0
  • [BC BREAK] PHP 7.1 is no longer supported.
  • [NEW] Added support for specifying ad-hoc mock property types (#247).
  • [IMPROVED] Improved exporter output for array references (#244).
  • [IMPROVED] Improved exporter output for weak references (#245).
  • [IMPROVED] Improved type hints and type declarations for better integration with PHPStan.
3.2.0
  • [IMPROVED] Compatibility with the current PHP 7.4 release candidate (#246).
3.1.0
  • [IMPROVED] Support for PHP 7.3 features (#239).
3.0.1
  • [FIXED] Fixed a bug where creating handles for uncallable methods with final class return types would throw exceptions (#237 - thanks @pmall).
3.0.0

See the migration guide for detailed upgrade information.

  • [BC BREAK] PHP 7.0 is no longer supported (#233).
  • [BC BREAK] An explicit argument is now required in setUseColor().
  • [BC BREAK] The handle->clazz() method was renamed to handle->class().
2.0.1
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, 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).
1.0.1
  • [FIXED] Matcher verification no longer uses deprecated each() function (#217).
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.
  • 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 trying eloquent/phony-peridot for the added auto-wired mock support. See the eloquent/phony-peridot repository for more information.
  • If you're using Phony under SimpleTest, change the Composer package from eloquent/phony to eloquent/phony-simpletest.
  • If you're using Phony under Pho, change the Composer package from eloquent/phony to eloquent/phony-pho.
  • For other frameworks, or standalone use, no changes are required.
0.14.7
  • [FIXED] The "last error" state is now cleared when using the feature detector (#209, #214).
0.14.6
  • [FIXED] Partial mocks of abstract functions with return types now work asintended (#212).
  • [FIXED] Fixed regression of #203 and #204.
0.14.5
  • [FIXED] Mock handle substitution fixed for threw() and receivedException() verifications (#211).
  • [IMPROVED] Inline exporter now uses tilde (~) to indicate truncated content (#210).
  • [IMPROVED] Refactored the feature detector.
0.14.4
  • [FIXED] Fixed mocking of classes with self return type (#208).
0.14.3
  • [FIXED] Suppress posix_isatty warnings that occur when PHPUnit process isolation is in use (#207 - thanks @keksa).
0.14.2
  • [FIXED] Fixed nullable return type support for newer PHP 7.1 release candidates (#206).
0.14.1
  • [FIXED] Checking for nullable type support no longer causes fatal errors under HHVM (#203, #204 - thanks @shadowhand).
0.14.0
  • [BC BREAK] Removed calledOn() (#197).
  • [IMPROVED] Generator spies and iterable spies are now substituted in argument matching and verification (#193).
  • [IMPROVED] Documentation improvements (#191, #192, #198).
0.13.5
  • [IMPROVED] Support for PHP 7.1 iterable pseudo-type (#195).
  • [IMPROVED] Support for PHP 7.1 void pseudo-type (#195).
  • [IMPROVED] Support for PHP 7.1 nullable types (#195).
  • [IMPROVED] Disallow ASCII delete in symbol names, matching the change in PHP 7.1 (#195).
0.13.4
0.13.3
  • [FIXED] Verification results now return call verifiers instead of unwrapped calls (#185).
0.13.2
  • [FIXED] Fixed mocking of destructors (#183).
0.13.1
  • [IMPROVED] Improved support for mocking many problematic classes (#182).
0.13.0
  • [BC BREAK] Renamed $handle->mock() to $handle->get() (#180).
  • [BC BREAK] Removed verify() and verifyStatic() (#179).
  • [BC BREAK] Removed magic calls from mock handles. All stubbing must now use with(), and all call argument verification must now use calledWith() (#179).
  • [IMPROVED] Improved exporting of mock handles, stubs, spies, and closures (#177).
0.12.0
  • [BC BREAK] Replaced the term "traversable" with "iterable". Any function or method with "traversable" in the name has also been renamed accordingly (#164).
  • [BC BREAK] Stubs now return empty values by default, instead of forwarding (#174).
0.11.0
  • [NEW] Implemented stubGlobal() (#163).
  • [NEW] Implemented spyGlobal() (#175).
  • [IMPROVED] Traversable spies now implement ArrayAccess and Countable (#165).
0.10.2
  • [IMPROVED] Complete overhaul of verification output, with improvements to the output of all verifications (#161, #170).
  • [IMPROVED] Improved exporting of closures under HHVM (#166).
  • [FIXED] Fixed calledOn() behavior (#160).
  • [FIXED] Fixed verification output under Windows (#167).
  • [FIXED] Error reporting is now correctly restored in all cases (#168).
  • [FIXED] Fixed the recording of static magic method calls (#169).
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
cadot.eu/make
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky