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 f2fcf4b5dc975fd9696b92676224498784067c74..6f63fc54bb7cd7720698f66908d731b245958986 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 53889dd877144d7e286798e009a8c1d3bb07944b..aa4dd6e8f980b1c6a2a8cde62197c98b72fafd95 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");
 }
 ?>