public function ParameterBagTest::testResolveStringWithSpacesReturnsString

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

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php, line 224

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));
  }
}