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

Phpunit Extensions Laravel Package

lendable/phpunit-extensions

View on GitHub
Deep Wiki
Context7
0.5.0

0.5.0 (2026-02-19)

Features

0.4.0

0.4.0 (2026-01-09)

Features

0.3.2

0.3.2 (2026-01-09)

Fixes

  • Don't use named args for testDouble call (#130) (ea01591)
0.3.1

What's Changed

What's Fixed

Full Changelog: https://github.com/Lendable/phpunit-extensions/compare/0.3.0...0.3.1

0.3.0

What's Changed

Updated for PHPUnit 11. This is has required a major shift away from overriding createMock and requiring extension or trait usage via static analysis. This is due to (understandably) PHPUnit making their internal methods final.

To enforce not using return value generation for test doubles, and error out instead, you have 3 options:

  • Use the StrictMocking trait, and call createStrictMock() explicitly. The PHPStan rules bundled will enforce this usage if the trait is used.
  • Extend the TestCase abstract class provided, and call createStrictMock() explicitly. The PHPStan rules bundled will enforce this usage if this class is extended from.
  • Add #[DisableReturnValueGenerationForTestDoubles] to your test cases. The Rector rule EnforceDisableReturnValueGenerationForTestDoublesRector shipped will enforce/automate adding this to be added to all test cases.

Full Changelog: https://github.com/Lendable/phpunit-extensions/compare/0.2.0...0.3.0

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
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