public function PhpFileLoaderTest::testLoad in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/translation/Tests/Loader/PhpFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\PhpFileLoaderTest::testLoad()
 - 8 vendor/symfony/dependency-injection/Tests/Loader/PhpFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\PhpFileLoaderTest::testLoad()
 
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/Loader/PhpFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\PhpFileLoaderTest::testLoad()
 
File
- vendor/
symfony/ translation/ Tests/ Loader/ PhpFileLoaderTest.php, line 19  
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testLoad() {
  $loader = new PhpFileLoader();
  $resource = __DIR__ . '/../fixtures/resources.php';
  $catalogue = $loader
    ->load($resource, 'en', 'domain1');
  $this
    ->assertEquals(array(
    'foo' => 'bar',
  ), $catalogue
    ->all('domain1'));
  $this
    ->assertEquals('en', $catalogue
    ->getLocale());
  $this
    ->assertEquals(array(
    new FileResource($resource),
  ), $catalogue
    ->getResources());
}