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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata