--TEST-- PostgreSQL pg_fetch_object() --SKIPIF-- --FILE-- getMessage(), "\n"; } echo "Ok\n"; ?> --EXPECT-- test_class::__construct(1,2) object(test_class)#1 (3) { ["num"]=> string(1) "0" ["str"]=> string(3) "ABC" ["bin"]=> NULL } pg_fetch_object(): Argument #3 ($class) must be a valid class name, does_not_exist given Ok