From 3bc63402647e5fd8e693d63eeaafc5c7d06b4018 Mon Sep 17 00:00:00 2001 From: gggeek Date: Tue, 17 Jan 2023 13:11:50 +0000 Subject: [PATCH] fix tests --- tests/3EncoderTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } -- 2.47.0