From: Yasuo Ohgaki Date: Thu, 25 Apr 2002 07:52:01 +0000 (+0000) Subject: Added test for pg_fetch_*() functions X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~432 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5b4a507fe940e9fd2767df55b2c9c6efec9fd2f;p=php Added test for pg_fetch_*() functions --- diff --git a/ext/pgsql/tests/17result.phpt b/ext/pgsql/tests/17result.phpt new file mode 100644 index 0000000000..33acb3a682 --- /dev/null +++ b/ext/pgsql/tests/17result.phpt @@ -0,0 +1,40 @@ +--TEST-- +PostgreSQL pg_fetch_*() functions +--SKIPIF-- + +--FILE-- + +--EXPECT-- +object(stdClass)(3) { + ["num"]=> + string(1) "1" + ["str"]=> + string(3) "ABC" + ["bin"]=> + NULL +} +array(6) { + [0]=> + string(1) "1" + ["num"]=> + string(1) "1" + [1]=> + string(3) "ABC" + ["str"]=> + string(3) "ABC" + [2]=> + NULL + ["bin"]=> + NULL +} +array(3) { + [0]=> + string(1) "1" + [1]=> + string(3) "ABC" + [2]=> + NULL +} +Ok diff --git a/ext/pgsql/tests/result.inc b/ext/pgsql/tests/result.inc new file mode 100644 index 0000000000..6982a84493 --- /dev/null +++ b/ext/pgsql/tests/result.inc @@ -0,0 +1,21 @@ + \ No newline at end of file