Ensure server will report notices when test expects them
authorChris Wright <daverandom@php.net>
Sun, 14 Dec 2014 14:37:03 +0000 (14:37 +0000)
committerChris Wright <daverandom@php.net>
Mon, 15 Dec 2014 12:35:30 +0000 (12:35 +0000)
tests/trans001.phpt

index fc00a38..1dc97ba 100644 (file)
@@ -10,6 +10,7 @@ include "_setup.inc";
 
 $c = new pq\Connection(PQ_DSN);
 $c->exec("DROP TABLE IF EXISTS test CASCADE");
+$c->exec("SET client_min_messages TO NOTICE");
 $c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) {
        echo "Got notice: $notice\n";
 });