summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/22pg_fetch_object.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/tests/22pg_fetch_object.phpt')
-rw-r--r--ext/pgsql/tests/22pg_fetch_object.phpt7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/pgsql/tests/22pg_fetch_object.phpt b/ext/pgsql/tests/22pg_fetch_object.phpt
index 9f9319bcfe..22c90c4c3c 100644
--- a/ext/pgsql/tests/22pg_fetch_object.phpt
+++ b/ext/pgsql/tests/22pg_fetch_object.phpt
@@ -22,6 +22,12 @@ $rows = pg_num_rows($result);
var_dump(pg_fetch_object($result, NULL, 'test_class', array(1, 2)));
+try {
+ var_dump(pg_fetch_object($result, NULL, 'does_not_exist'));
+} catch (TypeError $e) {
+ echo $e->getMessage(), "\n";
+}
+
echo "Ok\n";
?>
--EXPECT--
@@ -34,4 +40,5 @@ object(test_class)#1 (3) {
["bin"]=>
NULL
}
+pg_fetch_object(): Argument #3 ($class_name) must be a valid class name, does_not_exist given
Ok