public function ParameterBagTest::testResolveUnescapesValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/ParameterBag/ParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\ParameterBagTest::testResolveUnescapesValue()
@covers Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::resolve
File
- vendor/
symfony/ dependency-injection/ Tests/ ParameterBag/ ParameterBagTest.php, line 226
Class
Namespace
Symfony\Component\DependencyInjection\Tests\ParameterBagCode
public function testResolveUnescapesValue() {
$bag = new ParameterBag(array(
'foo' => array(
'bar' => array(
'ding' => 'I\'m a bar %%foo %%bar',
),
),
'bar' => 'I\'m a %%foo%%',
));
$bag
->resolve();
$this
->assertEquals('I\'m a %foo%', $bag
->get('bar'), '->resolveValue() supports % escaping by doubling it');
$this
->assertEquals(array(
'bar' => array(
'ding' => 'I\'m a bar %foo %bar',
),
), $bag
->get('foo'), '->resolveValue() supports % escaping by doubling it');
}