You are here

public function TranslatorTest::getFlattenedTransTests in Plug 7

File

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