Skip to content

Commit

Permalink
Revise pgsql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasuo Ohgaki committed Aug 18, 2013
1 parent 0c4ba51 commit e960eeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/pgsql/tests/80_bug32223.phpt
Expand Up @@ -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);
Expand All @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions ext/pgsql/tests/80_bug32223b.phpt
Expand Up @@ -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);
Expand All @@ -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"
Expand Down

0 comments on commit e960eeb

Please sign in to comment.