use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
class ResolveParameterPlaceHoldersPassTest extends TestCase
{ private ResolveParameterPlaceHoldersPass
$compilerPass;
private ContainerBuilder
$container;
private Definition
$fooDefinition;
protected function setUp(): void
{ $this->compilerPass =
new ResolveParameterPlaceHoldersPass();
$this->container =
$this->
createContainerBuilder();
$this->compilerPass->
process($this->container
);
$this->fooDefinition =
$this->container->
getDefinition('foo'
);
} public function testClassParametersShouldBeResolved() { $this->
assertSame('Foo',
$this->fooDefinition->
getClass());
} public function testFactoryParametersShouldBeResolved() {