From e607215e47e9138f17fc236d6f02db4f585f9120 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 15 Aug 2014 18:36:58 +0200 Subject: [PATCH] Fix tests to account for warnings moved from RT to CT --- ext/standard/tests/array/array_keys_error.phpt | 2 +- tests/run-test/test005.phpt | 3 ++- tests/run-test/test008a.phpt | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/standard/tests/array/array_keys_error.phpt b/ext/standard/tests/array/array_keys_error.phpt index 316e91d7e69..685547f0ec8 100644 --- a/ext/standard/tests/array/array_keys_error.phpt +++ b/ext/standard/tests/array/array_keys_error.phpt @@ -9,7 +9,7 @@ var_dump(array_keys("string")); var_dump(array_keys(new stdclass)); // object var_dump(array_keys()); // Zero arguments var_dump(array_keys(array(), "", TRUE, 100)); // args > expected -var_dump(array_keys(array(1,2,3, array() => array()))); // (W)illegal offset +var_dump(array_keys(array(1,2,3, new stdClass => array()))); // (W)illegal offset echo "Done\n"; ?> diff --git a/tests/run-test/test005.phpt b/tests/run-test/test005.phpt index 3d51531ed91..5dcb650444f 100644 --- a/tests/run-test/test005.phpt +++ b/tests/run-test/test005.phpt @@ -19,7 +19,8 @@ var_dump(ini_get('track_errors')); ini_set('display_errors', 0); var_dump(ini_get('display_errors')); var_dump($php_errormsg); -$error = 1 / 0; +$zero = 0; +$error = 1 / $zero; var_dump($php_errormsg); ?> --EXPECTF-- diff --git a/tests/run-test/test008a.phpt b/tests/run-test/test008a.phpt index 27da085e049..ff2a93be0fc 100644 --- a/tests/run-test/test008a.phpt +++ b/tests/run-test/test008a.phpt @@ -19,7 +19,8 @@ var_dump(ini_get('track_errors')); ini_set('display_errors', 0); var_dump(ini_get('display_errors')); var_dump($php_errormsg); -$error = 1 / 0; +$zero = 0; +$error = 1 / $zero; var_dump($php_errormsg); ?> --EXPECTF--