You are here

public function YamlFileLoaderTest::testLoadThrowsAnExceptionIfFileNotLocal in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\YamlFileLoaderTest::testLoadThrowsAnExceptionIfFileNotLocal()

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

File

vendor/symfony/translation/Tests/Loader/YamlFileLoaderTest.php, line 54

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testLoadThrowsAnExceptionIfFileNotLocal() {
  $loader = new YamlFileLoader();
  $resource = 'http://example.com/resources.yml';
  $loader
    ->load($resource, 'en', 'domain1');
}