summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagefilter_error1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/imagefilter_error1.phpt')
-rw-r--r--ext/gd/tests/imagefilter_error1.phpt11
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/gd/tests/imagefilter_error1.phpt b/ext/gd/tests/imagefilter_error1.phpt
index 41637994b4..407944d899 100644
--- a/ext/gd/tests/imagefilter_error1.phpt
+++ b/ext/gd/tests/imagefilter_error1.phpt
@@ -11,8 +11,11 @@ if (!extension_loaded("gd")) die("skip GD not present");
<?php
$image = imagecreatetruecolor(180, 30);
-var_dump(imagefilter($image));
+try {
+ var_dump(imagefilter($image));
+} catch (TypeError $e) {
+ echo $e->getMessage(), "\n";
+}
?>
---EXPECTF--
-Warning: Wrong parameter count for imagefilter() in %s on line %d
-NULL
+--EXPECT--
+Wrong parameter count for imagefilter()