1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10345] Fix documentation on the new function and the switch

Also do not min/max the value, but throw an error on an invalid Plural rule.

PHPBB3-10345
This commit is contained in:
Joas Schilling
2011-09-13 01:46:00 +02:00
committed by Oleg Pudeyev
parent 757fcd3e63
commit f16d72fcfb
3 changed files with 16 additions and 4 deletions

View File

@@ -51,11 +51,11 @@ class phpbb_user_lang_test extends phpbb_test_case
$this->assertEquals($user->lang('ARRY', 2), '2 posts');
$this->assertEquals($user->lang('ARRY', 123), '123 posts');
// Bug PHPBB3-9949
// ticket PHPBB3-9949
$this->assertEquals($user->lang('ARRY', 1, 2), '1 post');
$this->assertEquals($user->lang('ARRY', 1, 's', 2), '1 post');
// Bug PHPBB3-10345
// ticket PHPBB3-10345
$user = new user;
$user->lang = array(
'PLURAL_RULE' => 13,