1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/10394] Remove call-time pass by reference from tests for PHP 5.4

PHPBB3-10394
This commit is contained in:
Nils Adermann
2011-09-27 17:31:24 +02:00
parent cc2ecc9171
commit b571b3e032
2 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ class phpbb_utf_normalizer_test extends phpbb_test_case
foreach ($tests as $test)
{
$utf_result = $utf_expected;
call_user_func(array('utf_normalizer', $form), &$utf_result);
call_user_func(array('utf_normalizer', $form), $utf_result);
$hex_result = $this->utf_to_hexseq($utf_result);
$this->assertEquals($utf_expected, $utf_result, "$expected == $form($test) ($hex_expected != $hex_result)");
@@ -154,7 +154,7 @@ class phpbb_utf_normalizer_test extends phpbb_test_case
foreach (array('nfc', 'nfkc', 'nfd', 'nfkd') as $form)
{
$utf_result = $utf_expected;
call_user_func(array('utf_normalizer', $form), &$utf_result);
call_user_func(array('utf_normalizer', $form), $utf_result);
$hex_result = $this->utf_to_hexseq($utf_result);
$this->assertEquals($utf_expected, $utf_result, "$hex_expected == $form($hex_tested) ($hex_expected != $hex_result)");