You are here

public function TranslatorTest::getFlattenedTransTests in Zircon Profile 8

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

File

vendor/symfony/translation/Tests/TranslatorTest.php, line 388

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function getFlattenedTransTests() {
  $messages = array(
    'symfony' => array(
      'is' => array(
        'great' => 'Symfony est super!',
      ),
    ),
    'foo' => array(
      'bar' => array(
        'baz' => 'Foo Bar Baz',
      ),
      'baz' => 'Foo Baz',
    ),
  );
  return array(
    array(
      'Symfony est super!',
      $messages,
      'symfony.is.great',
    ),
    array(
      'Foo Bar Baz',
      $messages,
      'foo.bar.baz',
    ),
    array(
      'Foo Baz',
      $messages,
      'foo.baz',
    ),
  );
}