fix tests
authorMichael Wallner <mike@php.net>
Fri, 2 Mar 2018 10:13:01 +0000 (11:13 +0100)
committerMichael Wallner <mike@php.net>
Fri, 2 Mar 2018 10:13:51 +0000 (11:13 +0100)
tests/encstream015.phpt
tests/urlparser013.phpt

index f2fcf4b..6f63fc5 100644 (file)
@@ -3,6 +3,7 @@ encoding stream brotli static
 --SKIPIF--
 <?php
 include "skipif.inc";
+class_exists("http\\Encoding\\Stream\\Enbrotli", false) or die("SKIP need brotli support");
 ?>
 --FILE--
 <?php
index 53889dd..aa4dd6e 100644 (file)
@@ -3,7 +3,7 @@ url parser multibyte/utf-8/topct
 --SKIPIF--
 <?php
 include "skipif.inc";
-if (!defined("http\\Url::PARSE_TOIDN") or
+defined("http\\Url::PARSE_TOIDN") or
        die("skip need http\\Url::PARSE_TOIDN support");
 }
 ?>