From: Michael Wallner Date: Fri, 29 May 2015 09:17:49 +0000 (+0200) Subject: fix test if builtin json converter is not available X-Git-Tag: v0.6.0RC1~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a1fc94a694017108ce3507be20ee321df31bbb9c;p=m6w6%2Fext-pq fix test if builtin json converter is not available --- diff --git a/tests/conv001.phpt b/tests/conv001.phpt index 64488b5..8533753 100644 --- a/tests/conv001.phpt +++ b/tests/conv001.phpt @@ -131,7 +131,7 @@ $t = new pq\Types($c); $c->setConverter(new HStoreConverter($t)); $c->setConverter(new IntVectorConverter($t)); -if (!defined("pq\\Types::JSON")) { +if (!(defined("pq\\Types::JSON") && defined("pq\\Result::CONV_JSON"))) { $c->setConverter(new JSONConverter($t)); } $c->setConverter(new BoxConverter($t));