Weave 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.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table