示例#1
0
 public function testSetMessages()
 {
     $catalogue = new MessageCatalogue('en', array('domain1' => array('foo' => 'foo'), 'domain2' => array('bar' => 'bar')));
     $catalogue->setMessages($messages = array('foo1' => 'foo1'), 'domain1');
     $this->assertEquals($messages, $catalogue->getMessages('domain1'));
 }