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 fc00a385c7be31acf028767cb25a0b21ddc8bc2a..1dc97baff9d1fa1bbe8eb0be2c3758be8cb59e0d 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";
 });