$this->assertEquals(array('foo'=>'bar','bar'=>'%foo%'),$config->getParameters(),'->load() takes a single file name as its first argument');
try
{
$loader->load('foo.ini');
$this->fail('->load() throws an InvalidArgumentException if the loaded file does not exist');
}
catch(\Exception$e)
{
$this->assertInstanceOf('\InvalidArgumentException',$e,'->load() throws an InvalidArgumentException if the loaded file does not exist');
$this->assertStringStartsWith('The file "foo.ini" does not exist (in: ',$e->getMessage(),'->load() throws an InvalidArgumentException if the loaded file does not exist');
}
try
{
@$loader->load('nonvalid.ini');
$this->fail('->load() throws an InvalidArgumentException if the loaded file is not parseable');
}
catch(\Exception$e)
{
$this->assertInstanceOf('\InvalidArgumentException',$e,'->load() throws an InvalidArgumentException if the loaded file is not parseable');
$this->assertEquals('The nonvalid.ini file is not valid.',$e->getMessage(),'->load() throws an InvalidArgumentException if the loaded file is not parseable');