Commit:    e960eebfea1fccbb4a2f030949249d4d1d198728
Author:    Yasuo Ohgaki <yohg...@php.net>         Sun, 18 Aug 2013 18:24:34 
+0900
Parents:   0c4ba514bec77497fe54396b5e5c2b342ac68152
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=e960eebfea1fccbb4a2f030949249d4d1d198728

Log:
Revise pgsql tests

Changed paths:
  M  ext/pgsql/tests/80_bug32223.phpt
  M  ext/pgsql/tests/80_bug32223b.phpt


Diff:
diff --git a/ext/pgsql/tests/80_bug32223.phpt b/ext/pgsql/tests/80_bug32223.phpt
index bf76959..07ca7b9 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 6e1a073..5291659 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"


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to