From: gggeek Date: Wed, 18 Jan 2023 07:55:27 +0000 (+0000) Subject: fix tests X-Git-Tag: 4.10.0~136 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=feb128ad6b98cdae7cef0753c4eecf599802ce86;p=plcapi.git fix tests --- diff --git a/tests/6HTTPTest.php b/tests/6HTTPTest.php index cef0965e..22358f40 100644 --- a/tests/6HTTPTest.php +++ b/tests/6HTTPTest.php @@ -100,6 +100,11 @@ class HTTPTest extends ServerTest public function testAcceptCharset() { + if (version_compare(PHP_VERSION, '5.6.0', '<')) + { + $this->markTestSkipped('cannot test accept-charset on php < 5.6'); + return; + } if (!function_exists('mb_list_encodings')) { $this->markTestSkipped('mbstring missing: cannot test accept-charset');