You are here

public function DiffOperationTest::testGetResultFromSingleDomain in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Tests/Catalogue/DiffOperationTest.php \Symfony\Component\Translation\Tests\Catalogue\DiffOperationTest::testGetResultFromSingleDomain()

File

vendor/symfony/translation/Tests/Catalogue/DiffOperationTest.php, line 43

Class

DiffOperationTest

Namespace

Symfony\Component\Translation\Tests\Catalogue

Code

public function testGetResultFromSingleDomain() {
  $this
    ->assertEquals(new MessageCatalogue('en', array(
    'messages' => array(
      'a' => 'old_a',
      'c' => 'new_c',
    ),
  )), $this
    ->createOperation(new MessageCatalogue('en', array(
    'messages' => array(
      'a' => 'old_a',
      'b' => 'old_b',
    ),
  )), new MessageCatalogue('en', array(
    'messages' => array(
      'a' => 'new_a',
      'c' => 'new_c',
    ),
  )))
    ->getResult());
}