diff --git a/tests/GlValidatorTest.php b/tests/GlValidatorTest.php index 1b8f9b5..b5d64a3 100644 --- a/tests/GlValidatorTest.php +++ b/tests/GlValidatorTest.php @@ -181,11 +181,11 @@ function (SplFileInfo $file) use (&$count) { $src = __DIR__ . "/expected/" . $file; $dst = __DIR__ . "/result/" . $file; - $srccontent = $this->file_get_contents_utf8($src); - $dstcontent = $this->file_get_contents_utf8($dst); + $srccontent = file_get_contents($src); + $dstcontent = file_get_contents($dst); - $srcencoding = mb_detect_encoding($srccontent, "UTF-8"); - $dstencoding = mb_detect_encoding($dstcontent, "UTF-8"); + $srcencoding = mb_detect_encoding($srccontent); + $dstencoding = mb_detect_encoding($dstcontent); $this->assertEquals($srcencoding, $dstencoding, "$src:$srcencoding different to $dst:$dstencoding "); diff --git a/tests/expected/test1/w3c_html_index.html b/tests/expected/test1/w3c_html_index.html index 59cc128..c317831 100644 --- a/tests/expected/test1/w3c_html_index.html +++ b/tests/expected/test1/w3c_html_index.html @@ -1 +1 @@ -
Info: The Content-Type was text/html
. Using the HTML parser.
Info: Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.
The document validates according to the specified schema(s) and to additional constraints checked by the validator.
\ No newline at end of file +Info: The Content-Type was text/html
. Using the HTML parser.
Info: Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.
The document validates according to the specified schema(s) and to additional constraints checked by the validator.
\ No newline at end of file