You are here

public function ParameterBagTest::testResolveStringWithSpacesReturnsString in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\ParameterBagTest::testResolveStringWithSpacesReturnsString()

@covers Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::resolve @dataProvider stringsWithSpacesProvider

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php, line 259

Class

ParameterBagTest

Namespace

Symfony\Component\DependencyInjection\Tests\ParameterBag

Code

public function testResolveStringWithSpacesReturnsString($expected, $test, $description) {
  $bag = new ParameterBag(array(
    'foo' => 'bar',
  ));
  try {
    $this
      ->assertEquals($expected, $bag
      ->resolveString($test), $description);
  } catch (ParameterNotFoundException $e) {
    $this
      ->fail(sprintf('%s - "%s"', $description, $expected));
  }
}