diff options
author | Ilias Dimopoulos <[email protected]> | 2019-06-14 13:06:21 +0300 |
---|---|---|
committer | Ilias Dimopoulos <[email protected]> | 2019-06-14 13:54:42 +0300 |
commit | 239e9372ba56d7b2dad9fa83102034b298c6caa3 (patch) | |
tree | ac725a7f59ddb758a5fe966aa09b1de6ee517ece | |
parent | c961ca6a0a81dc6b55b6859b3f9ea7f402edf9ad (diff) |
Set default encoding in the doc object.
-rw-r--r-- | test/HTML5/Parser/DOMTreeBuilderTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/HTML5/Parser/DOMTreeBuilderTest.php b/test/HTML5/Parser/DOMTreeBuilderTest.php index 21e9cea..b5940c2 100644 --- a/test/HTML5/Parser/DOMTreeBuilderTest.php +++ b/test/HTML5/Parser/DOMTreeBuilderTest.php @@ -52,6 +52,7 @@ class DOMTreeBuilderTest extends \Masterminds\HTML5\Tests\TestCase $html = '<!DOCTYPE html><html></html>'; $doc = $this->parse($html); + $this->assertEquals('UTF-8', $doc->encoding); $this->assertInstanceOf('\DOMDocument', $doc); $this->assertEquals('html', $doc->documentElement->tagName); $this->assertEquals('http://www.w3.org/1999/xhtml', $doc->documentElement->namespaceURI); |