/**
* The test should be kept in the group as it always expects a deprecation.
*
* @group legacy
*/
public function testDeprecateParameter() { $builder =
new ContainerBuilder();
$builder->
setParameter('foo', 'bar'
);
$builder->
deprecateParameter('foo', 'symfony/test', '6.3'
);
$this->
expectDeprecation('Since symfony/test 6.3: The parameter "foo" is deprecated.'
);
$builder->
getParameter('foo'
);
} /**
* The test should be kept in the group as it always expects a deprecation.
*
* @group legacy
*/