diff options
author | George Peter Banyard <girgias@php.net> | 2019-11-18 23:40:02 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2019-12-05 14:22:54 +0100 |
commit | 5fbd49f9abc058ea3040ce00b2225e4cc46ce650 (patch) | |
tree | bc360e1afe2a91c149bcc55174fcb521a97a1bc7 /ext/standard/tests/assert | |
parent | 73730eebca0fa765fb8df5806a48d0ce268940a8 (diff) | |
download | php-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.phpt | 4 |
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 |