You are here

public function MessageSelectorTest::testReturnMessageIfExactlyOneStandardRuleIsGiven in Plug 7

File

lib/Symfony/translation/Tests/MessageSelectorTest.php, line 28

Class

MessageSelectorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testReturnMessageIfExactlyOneStandardRuleIsGiven() {
  $selector = new MessageSelector();
  $this
    ->assertEquals('There are two apples', $selector
    ->choose('There are two apples', 2, 'en'));
}