From 2358c6142c0736761abcbd6c41eb91b0d0255cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 6 Feb 2015 06:55:27 +0100 Subject: [PATCH] Fix the tests for php 5.3 --- test/baseTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/baseTest.php b/test/baseTest.php index 13eddfc..0491ee1 100644 --- a/test/baseTest.php +++ b/test/baseTest.php @@ -117,8 +117,8 @@ class BaseTest extends PHPUnit_Framework_TestCase public function testGetAcceptLanguages ($acceptLanguage, $result) { $_SERVER['HTTP_ACCEPT_LANGUAGE'] = $acceptLanguage; - $langs = GetAcceptLanguages (); - $this->assertEquals ($result, array_keys($langs)[0]); + $langs = array_keys(GetAcceptLanguages ()); + $this->assertEquals ($result, $langs[0]); $_SERVER['HTTP_ACCEPT_LANGUAGE'] = "en"; localize ("authors.title", -1, true);