Merge pull request #886 from PrivateBin/scrutinizer-i18n-test

allow for Lojban (jbo) to be the "any" language pick
This commit is contained in:
El RIDO 2022-02-18 06:17:50 +01:00 committed by GitHub
commit 9443900f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class I18nTest extends PHPUnit_Framework_TestCase
{ {
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = '*'; $_SERVER['HTTP_ACCEPT_LANGUAGE'] = '*';
I18n::loadTranslations(); I18n::loadTranslations();
$this->assertTrue(strlen(I18n::_('en')) == 2, 'browser language any'); $this->assertTrue(strlen(I18n::_('en')) >= 2, 'browser language any');
} }
public function testVariableInjection() public function testVariableInjection()