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

Php Mock Integration Laravel Package

php-mock/php-mock-integration

Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state.

View on GitHub
Deep Wiki
Context7
3.0.0

What's Changed

BC Break:

  • MockDelegateFunctionBuilder::build
    • generates now a class, not an abstract class (so also the delegate method is no longer an abstract method)
    • when $functionName argument is provided the generated class contains public method with that name without any parameters
    • hash in the namespace of generated class is created from the provided $functionName and derive arguments (not just derived arguments as before)

New Contributors

Full Changelog: https://github.com/php-mock/php-mock-integration/compare/2.4.0...3.0.0

3.0.0-beta1

What's Changed

New Contributors

Full Changelog: https://github.com/php-mock/php-mock-integration/compare/2.4.0...3.0.0-beta1

2.5.0-beta1

[!CAUTION] Actually PR #13 is a BC Break, so we are going to move it into 3.0.0 instead, so 2.5.0 is not going to be published.

What's Changed

New Contributors

Full Changelog: https://github.com/php-mock/php-mock-integration/compare/2.4.0...2.5.0-beta1

2.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/php-mock/php-mock-integration/compare/2.3.0...2.4.0

2.2.1

What's Changed

New Contributors

Full Changelog: https://github.com/php-mock/php-mock-integration/compare/2.2.0...2.2.1

2.1.0
  • #1 Added PHPUnit 9 support
  • #1 Added PHP 7.2, 7.3 and 7.4 support
  • #1 Removed HHVM support
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai