carlescliment/chained-stubs-bundle
User::find()->with()->get()->toArray()).Adopt if:
Look elsewhere if:
createMock()) over chained stubs.For Executives:
"This package lets our Laravel devs write faster, more reliable tests for Blade templates by simplifying how we mock chained method calls—like User::find()->withTrashed()->get(). It’s a lightweight, open-source solution that reduces test flakiness and maintenance, directly supporting our goal of [X]% test coverage for UI components. The time saved here can be reinvested in [priority initiative]."
For Engineering:
*"BladeTester cuts down on boilerplate when testing templates with chained methods. Instead of manually stubbing each step (e.g., ->shouldReceive('with')->andReturnSelf()), we can chain stubs declaratively. This is especially useful for:
OrderService::create()->validate()->charge()).Tradeoffs:
Proposal: Pilot in [Module X]’s test suite to measure time saved on test maintenance."*
How can I help you explore Laravel packages today?