Fix the tests for php 5.3
This commit is contained in:
parent
8b69b7fe0a
commit
2358c6142c
|
@ -117,8 +117,8 @@ class BaseTest extends PHPUnit_Framework_TestCase
|
||||||
public function testGetAcceptLanguages ($acceptLanguage, $result)
|
public function testGetAcceptLanguages ($acceptLanguage, $result)
|
||||||
{
|
{
|
||||||
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = $acceptLanguage;
|
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = $acceptLanguage;
|
||||||
$langs = GetAcceptLanguages ();
|
$langs = array_keys(GetAcceptLanguages ());
|
||||||
$this->assertEquals ($result, array_keys($langs)[0]);
|
$this->assertEquals ($result, $langs[0]);
|
||||||
|
|
||||||
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = "en";
|
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = "en";
|
||||||
localize ("authors.title", -1, true);
|
localize ("authors.title", -1, true);
|
||||||
|
|
Loading…
Reference in a new issue