namespace Symfony\Component\Translation\Tests\Catalogue;
use Symfony\Component\Translation\Catalogue\MergeOperation;
use Symfony\Component\Translation\MessageCatalogue;
use Symfony\Component\Translation\MessageCatalogueInterface;
class MergeOperationTest extends AbstractOperationTestCase
{ public function testGetMessagesFromSingleDomain() { $operation =
$this->
createOperation( new MessageCatalogue('en',
['messages' =>
['a' => 'old_a', 'b' => 'old_b'
]]),
new MessageCatalogue('en',
['messages' =>
['a' => 'new_a', 'c' => 'new_c'
]]) );
$this->
assertEquals( ['a' => 'old_a', 'b' => 'old_b', 'c' => 'new_c'
],
$operation->
getMessages('messages'
) );
$this->
assertEquals( ['c' => 'new_c'
],