From: gggeek Date: Tue, 17 Jan 2023 13:11:50 +0000 (+0000) Subject: fix tests X-Git-Tag: 4.10.0~145 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3bc63402647e5fd8e693d63eeaafc5c7d06b4018;p=plcapi.git fix tests --- diff --git a/tests/3EncoderTest.php b/tests/3EncoderTest.php index 9dd44a27..8c44463a 100644 --- a/tests/3EncoderTest.php +++ b/tests/3EncoderTest.php @@ -100,7 +100,8 @@ class EncoderTests extends PhpXmlRpc_PolyfillTestCase $a = $e->decodeXml(''); $this->assertEquals($string, $a->scalarVal()); - if (in_array('ISO-8859-15', mb_list_encodings())) { + /// @todo it seems that old php versions can not + if (version_compare(PHP_VERSION, '5.6.0', '>=')) { $i = $e->decodeXml('' . $string . ''); $this->assertEquals($string, $i->scalarVal()); }