From e960eebfea1fccbb4a2f030949249d4d1d198728 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Sun, 18 Aug 2013 18:24:34 +0900 Subject: [PATCH] Revise pgsql tests --- ext/pgsql/tests/80_bug32223.phpt | 4 +++- ext/pgsql/tests/80_bug32223b.phpt | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/pgsql/tests/80_bug32223.phpt b/ext/pgsql/tests/80_bug32223.phpt index bf76959772..07ca7b97fe 100644 --- a/ext/pgsql/tests/80_bug32223.phpt +++ b/ext/pgsql/tests/80_bug32223.phpt @@ -37,7 +37,8 @@ begin end; ' LANGUAGE plpgsql;"); - +$res = pg_query($dbh, 'SET client_min_messages TO NOTICE;'); +var_dump($res); $res = pg_query($dbh, 'SELECT test_notice()'); var_dump($res); $row = pg_fetch_row($res, 0); @@ -54,6 +55,7 @@ pg_close($dbh); ===DONE=== --EXPECTF-- resource(%d) of type (pgsql result) +resource(%d) of type (pgsql result) array(1) { [0]=> string(1) "f" diff --git a/ext/pgsql/tests/80_bug32223b.phpt b/ext/pgsql/tests/80_bug32223b.phpt index 6e1a073b99..5291659628 100644 --- a/ext/pgsql/tests/80_bug32223b.phpt +++ b/ext/pgsql/tests/80_bug32223b.phpt @@ -37,6 +37,9 @@ begin end; ' LANGUAGE plpgsql;"); +$res = pg_query($dbh, 'SET client_min_messages TO NOTICE;'); +var_dump($res); + function tester() { $res = pg_query(dbh, 'SELECT test_notice()'); $row = pg_fetch_row($res, 0); @@ -54,6 +57,8 @@ pg_close(dbh); ?> ===DONE=== --EXPECTF-- +resource(%d) of type (pgsql result) +resource(%d) of type (pgsql result) array(1) { [0]=> string(1) "f" -- 2.50.1