You are here

public function MessageCatalogueTest::testReplace 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::testReplace()

File

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

Class

MessageCatalogueTest

Namespace

Symfony\Component\Translation\Tests

Code

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