You are here

public function MessageCatalogueTest::testGetSet in Plug 7

File

lib/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'));
}