From: Chris Wright Date: Sun, 14 Dec 2014 14:37:03 +0000 (+0000) Subject: Ensure server will report notices when test expects them X-Git-Tag: v0.6.0RC1~19^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e1b86433bd546df30808d89489707de7c50794b7;p=m6w6%2Fext-pq Ensure server will report notices when test expects them --- diff --git a/tests/trans001.phpt b/tests/trans001.phpt index fc00a38..1dc97ba 100644 --- a/tests/trans001.phpt +++ b/tests/trans001.phpt @@ -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"; });