|
@@ -84,7 +84,7 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
|
|
$loader->load('services2.xml');
|
|
$loader->load('services2.xml');
|
|
|
|
|
|
$actual = $container->getParameterBag()->all();
|
|
$actual = $container->getParameterBag()->all();
|
|
- $expected = array('a string', 'foo' => 'bar', 'values' => array(0, 'integer' => 4, 100 => null, 'true', true, false, 'on', 'off', 'float' => 1.3, 1000.3, 'a string', array('foo', 'bar')), 'foo_bar' => new Reference('foo_bar'));
|
|
|
|
|
|
+ $expected = array('a string', 'foo' => 'bar', 'values' => array(0, 'integer' => 4, 100 => null, 'true', true, false, 'on', 'off', 'float' => 1.3, 1000.3, 'a string', array('foo', 'bar')), 'foo_bar' => new Reference('foo_bar'), 'mixedcase' => array('MixedCaseKey' => 'value'));
|
|
|
|
|
|
$this->assertEquals($expected, $actual, '->load() converts XML values to PHP ones');
|
|
$this->assertEquals($expected, $actual, '->load() converts XML values to PHP ones');
|
|
}
|
|
}
|
|
@@ -101,7 +101,7 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
|
|
$loader->load('services4.xml');
|
|
$loader->load('services4.xml');
|
|
|
|
|
|
$actual = $container->getParameterBag()->all();
|
|
$actual = $container->getParameterBag()->all();
|
|
- $expected = array('a string', 'foo' => 'bar', 'values' => array(true, false), 'foo_bar' => new Reference('foo_bar'), 'bar' => '%foo%', 'imported_from_ini' => true, 'imported_from_yaml' => true);
|
|
|
|
|
|
+ $expected = array('a string', 'foo' => 'bar', 'values' => array(true, false), 'foo_bar' => new Reference('foo_bar'), 'mixedcase' => array('MixedCaseKey' => 'value'), 'bar' => '%foo%', 'imported_from_ini' => true, 'imported_from_yaml' => true);
|
|
|
|
|
|
$this->assertEquals(array_keys($expected), array_keys($actual), '->load() imports and merges imported files');
|
|
$this->assertEquals(array_keys($expected), array_keys($actual), '->load() imports and merges imported files');
|
|
}
|
|
}
|