From feb128ad6b98cdae7cef0753c4eecf599802ce86 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 18 Jan 2023 07:55:27 +0000 Subject: [PATCH] fix tests --- tests/6HTTPTest.php | 5 +++++ 1 file changed, 5 insertions(+) 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'); -- 2.47.0