You are here

public function IniFileLoaderTest::testIniFileCanBeLoaded in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\IniFileLoaderTest::testIniFileCanBeLoaded()

@covers Symfony\Component\DependencyInjection\Loader\IniFileLoader::__construct @covers Symfony\Component\DependencyInjection\Loader\IniFileLoader::load

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php, line 40

Class

IniFileLoaderTest

Namespace

Symfony\Component\DependencyInjection\Tests\Loader

Code

public function testIniFileCanBeLoaded() {
  $this->loader
    ->load('parameters.ini');
  $this
    ->assertEquals(array(
    'foo' => 'bar',
    'bar' => '%foo%',
  ), $this->container
    ->getParameterBag()
    ->all(), '->load() takes a single file name as its first argument');
}