carlescliment/chained-stubs-bundle
chained-stubs-bundle) appears to be a niche utility for mocking/stubbing chained method calls in Laravel, likely targeting unit testing (e.g., Blade templates, Eloquent models, or service chains). If your product involves:
User::find()->withTrashed()->get()),BladeTester integration),laravel-mockery or mockery/mockery).BladeTester (also by the same author), which may introduce additional dependencies and maintenance overhead for a low-starred, unmaintained repo.mockery/mockery or orchestra/testbench are more battle-tested.BladeTester a hard requirement, or is the chaining stubbing standalone?BladeTester becomes obsolete?BladeTester (if applicable).composer.json:
"require-dev": {
"carlescliment/chained-stubs-bundle": "^1.0",
"carlescliment/blade-tester": "^1.0" // if needed
}
php artisan vendor:publish (if it uses config).BladeTester).Model::query()->where()->get()).config/app.php under test providers (if required).$stub = new ChainedStub(...)).BladeTester adds another layer of maintenance.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package abandoned | Tests break on Laravel updates | Fork + maintain internally |
| Incompatible with PHP 8.2+ | Tests fail silently | Polyfill or revert to native stubs |
| BladeTester dependency breaks | Blade tests fail | Isolate usage; avoid coupling |
| Performance degradation in CI | Slow test suites | Optimize stub usage; cache results |
| False positives in test assertions | Flaky tests | Manual review of stubbed interactions |
$stub->method()->another()).How can I help you explore Laravel packages today?