You are here

public function XliffFileLoaderTest::testLoadThrowsAnExceptionIfFileNotLocal in Zircon Profile 8.0

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

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

File

vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php, line 107

Class

XliffFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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