You are here

public function YamlFileLoaderTest::testLoadThrowsAnExceptionIfNotAnArray in Plug 7

@expectedException \Symfony\Component\Translation\Exception\InvalidResourceException

File

lib/Symfony/translation/Tests/Loader/YamlFileLoaderTest.php, line 64

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testLoadThrowsAnExceptionIfNotAnArray() {
  $loader = new YamlFileLoader();
  $resource = __DIR__ . '/../fixtures/non-valid.yml';
  $loader
    ->load($resource, 'en', 'domain1');
}