diff options
Diffstat (limited to 'ext/standard/tests/math/octdec_variation1.phpt')
-rw-r--r-- | ext/standard/tests/math/octdec_variation1.phpt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/standard/tests/math/octdec_variation1.phpt b/ext/standard/tests/math/octdec_variation1.phpt index 42d6a73068..cc8369c2aa 100644 --- a/ext/standard/tests/math/octdec_variation1.phpt +++ b/ext/standard/tests/math/octdec_variation1.phpt @@ -73,13 +73,17 @@ $inputs = array( $iterator = 1; foreach($inputs as $input) { echo "\n-- Iteration $iterator --\n"; - var_dump(octdec($input)); + try { + var_dump(octdec($input)); + } catch (TypeError $e) { + echo $e->getMessage(), "\n"; + } $iterator++; }; fclose($fp); ?> ---Done--- ---EXPECTF-- +--EXPECT-- *** Testing octdec() : usage variations *** -- Iteration 1 -- @@ -140,9 +144,7 @@ int(0) int(0) -- Iteration 20 -- - -Notice: Array to string conversion in %s on line %d -int(0) +octdec() expects parameter 1 to be string, array given -- Iteration 21 -- int(0) @@ -160,5 +162,5 @@ int(0) int(0) -- Iteration 26 -- -int(%d) +octdec() expects parameter 1 to be string, resource given ---Done--- |