### Install pest-symfony-kernel Source: https://github.com/bpolaszek/pest-symfony-kernel/blob/main/README.md Install the package using Composer. This command adds the necessary dependencies for your development environment. ```bash composer require --dev bentools/pest-symfony-kernel ``` -------------------------------- ### Inject Router Service in Pest Test Source: https://github.com/bpolaszek/pest-symfony-kernel/blob/main/README.md Demonstrates how to inject the RouterInterface service from the Symfony container into a Pest test using the `inject()` function. Ensure the `BenTools\Pest\Symfony` namespace is imported. ```php use Symfony\Component\Routing\RouterInterface; use function BenTools\Pest\Symfony\inject; it('injects my router! 🤯', function () { $router = inject(RouterInterface::class); // Fetch router from the service container expect($router)->toBeInstanceOf(RouterInterface::class); // ✨ }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.