From: Yasuo Ohgaki Date: Sun, 18 Aug 2013 09:24:34 +0000 (+0900) Subject: Revise pgsql tests X-Git-Tag: php-5.6.0alpha1~250^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e960eebfea1fccbb4a2f030949249d4d1d198728;p=php Revise pgsql tests --- 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"