You are here

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

File

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

Class

MessageCatalogueTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testGetSet() {
  $catalogue = new MessageCatalogue('en', array(
    'domain1' => array(
      'foo' => 'foo',
    ),
    'domain2' => array(
      'bar' => 'bar',
    ),
  ));
  $catalogue
    ->set('foo1', 'foo1', 'domain1');
  $this
    ->assertEquals('foo', $catalogue
    ->get('foo', 'domain1'));
  $this
    ->assertEquals('foo1', $catalogue
    ->get('foo1', 'domain1'));
}