diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-09-27 20:21:57 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-09-27 20:21:57 +0200 |
commit | 13b718e7206a7f78b8c108e2f55bd3056cbab130 (patch) | |
tree | 1f6e1691d14c727c93dd8d0cd7e85eb91f1ff924 /tests | |
parent | cc2ecc9171a0bda2e770177c4b2775361aa5832b (diff) | |
parent | b571b3e0326cc6fe987ceb317ee803d4921cc133 (diff) | |
download | forums-13b718e7206a7f78b8c108e2f55bd3056cbab130.tar forums-13b718e7206a7f78b8c108e2f55bd3056cbab130.tar.gz forums-13b718e7206a7f78b8c108e2f55bd3056cbab130.tar.bz2 forums-13b718e7206a7f78b8c108e2f55bd3056cbab130.tar.xz forums-13b718e7206a7f78b8c108e2f55bd3056cbab130.zip |
Merge remote-tracking branch 'naderman/ticket/10394' into develop-olympus
* naderman/ticket/10394:
[ticket/10394] Remove call-time pass by reference from tests for PHP 5.4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/profile/custom_test.php | 2 | ||||
-rw-r--r-- | tests/utf/normalizer_test.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/profile/custom_test.php b/tests/profile/custom_test.php index 0e0a851243..585182e583 100644 --- a/tests/profile/custom_test.php +++ b/tests/profile/custom_test.php @@ -48,7 +48,7 @@ class phpbb_profile_custom_test extends phpbb_database_test_case ); $cp = new custom_profile; - $result = $cp->validate_profile_field(FIELD_DROPDOWN, &$field_value, $field_data); + $result = $cp->validate_profile_field(FIELD_DROPDOWN, $field_value, $field_data); $this->assertEquals($expected, $result, $description); } diff --git a/tests/utf/normalizer_test.php b/tests/utf/normalizer_test.php index a0ba470416..f8f2467082 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('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)"); |