webignition/symfony-test-service-injector-trait
A PHP trait for Symfony tests that injects services into test classes, cutting boilerplate container setup so you can focus on writing assertions.
A PHP trait that makes private services from a Symfony test container easy to reach in functional and integration tests. Since Symfony exposes most services as private, tests often need extra plumbing to obtain them; this trait supplies a small, consistent API so you can pull a service by ID directly inside your PHPUnit test case.
test environment and test containeruse TestServiceInjectorTrait;
$service = $this->getService(SomeService::class);
How can I help you explore Laravel packages today?