com php-src: Fix tests to account for warnings moved from RT to CT: ext/standard/tests/array/array_keys_error.phpt tests/ru n-test/test005.phpt
tests/run-test/test008a.p hpt
| From: | Nikita Popov | Date: | Fri, 15 Aug 2014 16:44:39 +0000 |
| Subject: | com php-src: Fix tests to account for warnings moved from RT to CT: ext/standard/tests/array/array_keys_error.phpt tests/ru n-test/test005.phpt tests/run-test/test008a.p hpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80867@lists.php.net to get a copy of this message | ||
Commit: e607215e47e9138f17fc236d6f02db4f585f9120
Author: Nikita Popov <nikic@php.net> Fri, 15 Aug 2014 18:36:58 +0200
Parents: f7e5308f4b0a5a47c3edf80e14d37768d30213d8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e607215e47e9138f17fc236d6f02db4f585f9120
Log:
Fix tests to account for warnings moved from RT to CT
Changed paths:
M ext/standard/tests/array/array_keys_error.phpt
M tests/run-test/test005.phpt
M tests/run-test/test008a.phpt
Diff:
diff --git a/ext/standard/tests/array/array_keys_error.phpt
b/ext/standard/tests/array/array_keys_error.phpt
index 316e91d..685547f 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 3d51531..5dcb650 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 27da085..ff2a93b 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--