Skip to content

Commit

Permalink
travis ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelroecker committed Dec 27, 2015
1 parent 3c10ba3 commit 82bbe7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/GlValidatorTest.php
Expand Up @@ -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 ");

Expand Down
2 changes: 1 addition & 1 deletion tests/expected/test1/w3c_html_index.html
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link href="icon.png" rel="icon"/><link href="style.css" rel="stylesheet"/><title>Showing results for uploaded file index.html - Nu Html Checker</title><meta name="viewport" content="width=device-width, initial-scale=1"/><style type="text/css" media="all">@import url("https://validator.w3.org/nu/style.css");</style></head><body><h2>test1\index.html</h2><ol><li class="info"><p><strong>Info</strong>: <span>The Content-Type was <code>text/html</code>. Using the HTML parser.</span></p></li><li class="info"><p><strong>Info</strong>: <span>Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.</span></p></li></ol><p class="success">The document validates according to the specified schema(s) and to additional constraints checked by the validator.</p></body></html>
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link href="icon.png" rel="icon"/><link href="style.css" rel="stylesheet"/><title>Showing results for uploaded file index.html - Nu Html Checker</title><meta name="viewport" content="width=device-width, initial-scale=1"/><style type="text/css" media="all">@import url("https://validator.w3.org/nu/style.css");</style></head><body><h2>test1\index.html</h2><ol><li class="info"><p><strong>Info</strong>: <span>The Content-Type was <code>text/html</code>. Using the HTML parser.</span></p></li><li class="info"><p><strong>Info</strong>: <span>Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.</span></p></li></ol><p class="success">The document validates according to the specified schema(s) and to additional constraints checked by the validator.</p></body></html>

0 comments on commit 82bbe7c

Please sign in to comment.