publicfunctiontestProcessedEnvsAreIncompatibleWithResolve() { $this->expectException(RuntimeException::class); $this->expectExceptionMessage('Using a cast in "env(int:FOO)" is incompatible with resolution at compile time in "Symfony\Component\DependencyInjection\Tests\Compiler\BarExtension". The logic in the extension should be moved to a compiler pass, or an env parameter with no cast should be used instead.'); $container = newContainerBuilder(); $container->registerExtension(newBarExtension()); $container->prependExtensionConfig('bar', []);
publicfunctiontestCreateServiceWithAbstractArgument() { $this->expectException(RuntimeException::class); $this->expectExceptionMessage('Argument "$baz" of service "foo" is abstract: should be defined by Pass.');