summaryrefslogtreecommitdiff
path: root/ext/standard/tests/assert
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2019-11-18 23:40:02 +0100
committerGeorge Peter Banyard <girgias@php.net>2019-12-05 14:22:54 +0100
commit5fbd49f9abc058ea3040ce00b2225e4cc46ce650 (patch)
treebc360e1afe2a91c149bcc55174fcb521a97a1bc7 /ext/standard/tests/assert
parent73730eebca0fa765fb8df5806a48d0ce268940a8 (diff)
downloadphp-git-5fbd49f9abc058ea3040ce00b2225e4cc46ce650.tar.gz
Convert Errors to ValueErrors
Closes GH-4930
Diffstat (limited to 'ext/standard/tests/assert')
-rw-r--r--ext/standard/tests/assert/assert_options_error.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/assert/assert_options_error.phpt b/ext/standard/tests/assert/assert_options_error.phpt
index 0b50370b6c..ed94260ef8 100644
--- a/ext/standard/tests/assert/assert_options_error.phpt
+++ b/ext/standard/tests/assert/assert_options_error.phpt
@@ -5,9 +5,9 @@ assert_options() - unknown assert option.
<?php
try {
assert_options(1000);
-} catch (\Error $e) {
+} catch (\ValueError $e) {
echo $e->getMessage();
}
?>
--EXPECT--
-Unknown value 1000 \ No newline at end of file
+Unknown value 1000