publicfunctiontestWithErroredServiceLocator() { $this->expectException(ServiceNotFoundException::class); $this->expectExceptionMessage('The service "foo" in the container provided to "bar" has a dependency on a non-existent service "baz".'); $container = newContainerBuilder();
publicfunctiontestWithErroredHiddenService() { $this->expectException(ServiceNotFoundException::class); $this->expectExceptionMessage('The service "bar" has a dependency on a non-existent service "foo".'); $container = newContainerBuilder();