fix tests
authorgggeek <giunta.gaetano@gmail.com>
Wed, 18 Jan 2023 07:55:27 +0000 (07:55 +0000)
committergggeek <giunta.gaetano@gmail.com>
Wed, 18 Jan 2023 07:55:27 +0000 (07:55 +0000)
tests/6HTTPTest.php

index cef0965..22358f4 100644 (file)
@@ -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');