graham-campbell/testbench
Laravel TestBench adds testing helpers for Laravel packages and apps, built on PHPUnit, Mockery, and Orchestral Testbench. Supports Laravel 8–13 and PHP 7.4–8.5, providing a solid base for fast, reliable package tests.
Adopt When:
Look Elsewhere When:
*"Laravel TestBench cuts our testing setup time by 80% while ensuring rock-solid validation for new features and third-party integrations. By standardizing our test environment, we’ll:
*"This package replaces our custom test scaffolding with a Laravel-native solution that:
bootstrap/app.php hacks (uses Orchestral Testbench under the hood).AbstractAppTestCase.
Action: Replace our ad-hoc test classes with graham-campbell/testbench and standardize on AbstractPackageTestCase for packages. Zero config needed—just extend the base classes and start testing."**"If you’re tired of:
composer require graham-campbell/testbench --dev.createTestApp() function with extends AbstractAppTestCase and gain database mocking, service provider isolation, and Laravel-specific assertions for free."*How can I help you explore Laravel packages today?