diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-09-27 22:44:20 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-09-27 22:44:20 +0200 |
commit | 8377418466f861f6b3291ae92a71821f0a0be2d6 (patch) | |
tree | ded3aedc6eea9100bfe2172965e2c153aac884bf /tests | |
parent | 76f3d083831be93ba253c58cfef0104343316f4c (diff) | |
parent | 86f8851c403bb9f31b43a9656e844e5c925da19a (diff) | |
download | forums-8377418466f861f6b3291ae92a71821f0a0be2d6.tar forums-8377418466f861f6b3291ae92a71821f0a0be2d6.tar.gz forums-8377418466f861f6b3291ae92a71821f0a0be2d6.tar.bz2 forums-8377418466f861f6b3291ae92a71821f0a0be2d6.tar.xz forums-8377418466f861f6b3291ae92a71821f0a0be2d6.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[ticket/10394] Use call_user_func_array to pass a ref into a dynamic function
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utf/normalizer_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utf/normalizer_test.php b/tests/utf/normalizer_test.php index f8f2467082..1dc69e283e 100644 --- a/tests/utf/normalizer_test.php +++ b/tests/utf/normalizer_test.php @@ -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(array('utf_normalizer', $form), array(&$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(array('utf_normalizer', $form), array(&$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)"); |