Revert "[DepedencyInjection] fixed unit tests"

This reverts commit b8e5a155e4.
This commit is contained in:
Fabien Potencier 2011-09-25 11:33:00 +02:00
parent 604d066b52
commit 27fc06785b
3 changed files with 4 additions and 11 deletions

View File

@ -1,5 +0,0 @@
[parameters]
foo = bar
versions[] = "1"
versions[] = "2"
versions[] = "3"

View File

@ -1,3 +1,6 @@
[parameters]
foo = bar
bar = %foo%
versions[] = "1"
versions[] = "2"
versions[] = "3"

View File

@ -33,12 +33,7 @@ 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%'), $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');
$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');
$container = new ContainerBuilder();
$loader = new IniFileLoader($container, new FileLocator(self::$fixturesPath.'/ini'));