You are here

public function MessageSelectorTest::getNonMatchingMessages in Zircon Profile 8

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

File

vendor/symfony/translation/Tests/MessageSelectorTest.php, line 46

Class

MessageSelectorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function getNonMatchingMessages() {
  return array(
    array(
      '{0} There are no apples|{1} There is one apple',
      2,
    ),
    array(
      '{1} There is one apple|]1,Inf] There are %count% apples',
      0,
    ),
    array(
      '{1} There is one apple|]2,Inf] There are %count% apples',
      2,
    ),
    array(
      '{0} There are no apples|There is one apple',
      2,
    ),
  );
}