|
@@ -33,7 +33,12 @@ class IniFileLoaderTest extends \PHPUnit_Framework_TestCase
|
|
|
$container = new ContainerBuilder();
|
|
|
$loader = new IniFileLoader($container, new FileLocator(self::$fixturesPath.'/ini'));
|
|
|
$loader->load('parameters.ini');
|
|
|
- $this->assertEquals(array('foo' => 'bar', 'bar' => '%foo%', 'versions' => array(1, 2, 3)), $container->getParameterBag()->all(), '->load() takes a single file name as its first argument');
|
|
|
+ $this->assertEquals(array('foo' => 'bar', 'bar' => '%foo%'), $container->getParameterBag()->all(), '->load() takes a single file name as its first argument');
|
|
|
+
|
|
|
+ $container = new ContainerBuilder();
|
|
|
+ $loader = new IniFileLoader($container, new FileLocator(self::$fixturesPath.'/ini'));
|
|
|
+ $loader->load('array.ini');
|
|
|
+ $this->assertEquals(array('foo' => 'bar', 'versions' => array(1, 2, 3)), $container->getParameterBag()->all(), '->load() takes a single file name as its first argument');
|
|
|
|
|
|
$container = new ContainerBuilder();
|
|
|
$loader = new IniFileLoader($container, new FileLocator(self::$fixturesPath.'/ini'));
|