From: Michael Wallner Date: Thu, 24 Sep 2020 10:16:37 +0000 (+0200) Subject: tests: set lc_messages to C for tests checking errors X-Git-Tag: v2.1.8~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=76e64a0a6074927832c2f77d8ee45f253179dfad;p=m6w6%2Fext-pq tests: set lc_messages to C for tests checking errors --- diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index 2cc5896..a5bf4f3 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -9,6 +9,7 @@ echo "Test\n"; include "_setup.inc"; $c = new pq\Connection(PQ_DSN); +$c->exec("SET lc_messages TO 'C'"); $x = new pq\Cancel($c); diff --git a/tests/trans001.phpt b/tests/trans001.phpt index 1dc97ba..42e8f9e 100644 --- a/tests/trans001.phpt +++ b/tests/trans001.phpt @@ -11,6 +11,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->exec("SET lc_messages TO 'C'"); $c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) { echo "Got notice: $notice\n"; });