@covers Symfony\Component\DependencyInjection\Loader\IniFileLoader::__construct @covers Symfony\Component\DependencyInjection\Loader\IniFileLoader::load
public function testExceptionIsRaisedWhenIniFileDoesNotExist() {
try {
$this->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');
}
}