public function ContainerTest::testGetParameterBag

@covers Symfony\Component\DependencyInjection\Container::getParameterBag

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 59

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testGetParameterBag() {
  $sc = new Container();
  $this
    ->assertEquals(array(), $sc
    ->getParameterBag()
    ->all(), '->getParameterBag() returns an empty array if no parameter has been defined');
}