You are here

public function IniFileLoaderTest::testExceptionIsRaisedWhenIniFileCannotBeParsed in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\IniFileLoaderTest::testExceptionIsRaisedWhenIniFileCannotBeParsed()

@covers Symfony\Component\DependencyInjection\Loader\IniFileLoader::__construct @covers Symfony\Component\DependencyInjection\Loader\IniFileLoader::load

@expectedException \InvalidArgumentException @expectedExceptionMessage The "nonvalid.ini" file is not valid.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php, line 65

Class

IniFileLoaderTest

Namespace

Symfony\Component\DependencyInjection\Tests\Loader

Code

public function testExceptionIsRaisedWhenIniFileCannotBeParsed() {
  @$this->loader
    ->load('nonvalid.ini');
}