summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagecharup_error2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/imagecharup_error2.phpt')
-rw-r--r--ext/gd/tests/imagecharup_error2.phpt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/gd/tests/imagecharup_error2.phpt b/ext/gd/tests/imagecharup_error2.phpt
index e2db7bb558..f8b0bc4ebf 100644
--- a/ext/gd/tests/imagecharup_error2.phpt
+++ b/ext/gd/tests/imagecharup_error2.phpt
@@ -10,8 +10,12 @@ Rafael Dohms <rdohms [at] gmail [dot] com>
--FILE--
<?php
-$result = imagecharup(tmpfile(), 1, 5, 5, 'C', 1);
+try {
+ $result = imagecharup(tmpfile(), 1, 5, 5, 'C', 1);
+} catch (TypeError $e) {
+ echo $e->getMessage(), "\n";
+}
?>
---EXPECTF--
-Warning: imagecharup(): supplied resource is not a valid Image resource in %s on line %d
+--EXPECT--
+imagecharup(): supplied resource is not a valid Image resource