You are here

public function IniFileLoaderTest::testLoad in Zircon Profile 8.0

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

File

vendor/symfony/translation/Tests/Loader/IniFileLoaderTest.php, line 19

Class

IniFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testLoad() {
  $loader = new IniFileLoader();
  $resource = __DIR__ . '/../fixtures/resources.ini';
  $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());
}