You are here

public function MessageCatalogueTest::testAll in Zircon Profile 8

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

File

vendor/symfony/translation/Tests/MessageCatalogueTest.php, line 32

Class

MessageCatalogueTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testAll() {
  $catalogue = new MessageCatalogue('en', $messages = array(
    'domain1' => array(
      'foo' => 'foo',
    ),
    'domain2' => array(
      'bar' => 'bar',
    ),
  ));
  $this
    ->assertEquals(array(
    'foo' => 'foo',
  ), $catalogue
    ->all('domain1'));
  $this
    ->assertEquals(array(), $catalogue
    ->all('domain88'));
  $this
    ->assertEquals($messages, $catalogue
    ->all());
}