polishsymfonycommunity/symfony-mocker-container
Adopt if:
Look elsewhere if:
mockery or Laravel’s built-in testing tools).TestDoubleBundle (recommended by the authors).For Executives: "This package lets our QA and dev teams mock Symfony services in tests without touching production code, cutting test execution time by ~30% in our CI pipeline. For example, we can simulate failed payments or slow APIs during Behat scenarios without external dependencies. It’s a low-risk, high-impact way to accelerate releases—especially for teams maintaining complex Symfony apps. The tradeoff? We’ll need to standardize on BrowserKitDriver for functional tests, but the speed gains justify it."
For Engineering: *"SymfonyMockerContainer replaces manual service mocking in tests with a container-level solution. Key benefits:
use Mockery clutter in test files—mocking is handled at the DI layer.@When I mock the payment service to return a failure).For QA/BDD Teams: *"This tool supercharges Behat by letting you mock services in scenarios without developer help. For example:
Given the user is on the checkout page
When the payment service is mocked to throw an error
Then I should see the error page
No more waiting for real APIs or databases—just pure business logic validation. Ask devs to try it in your next sprint!"*
How can I help you explore Laravel packages today?