diff options
author | Andrew Dolgov <[email protected]> | 2022-12-13 20:08:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-12-13 20:08:43 +0300 |
commit | 8ea537123d1cef38f25f9fbe92e3a9c0f89de55a (patch) | |
tree | 0b40ea733af15c1f33403e42afc8afa14d48b87c /plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/UTF8UtilsTest.php | |
parent | 313f12ae9306fc62bbbfa10310a2feb20aa274c5 (diff) |
move af_readability out of master tree
Diffstat (limited to 'plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/UTF8UtilsTest.php')
-rw-r--r-- | plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/UTF8UtilsTest.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/UTF8UtilsTest.php b/plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/UTF8UtilsTest.php deleted file mode 100644 index 72c26a4b3..000000000 --- a/plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/UTF8UtilsTest.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -namespace Masterminds\HTML5\Tests\Parser; - -use Masterminds\HTML5\Parser\UTF8Utils; - -class UTF8UtilsTest extends \Masterminds\HTML5\Tests\TestCase -{ - public function testConvertToUTF8() - { - $out = UTF8Utils::convertToUTF8('éàa', 'ISO-8859-1'); - $this->assertEquals('éà a', $out); - } - - /** - * @todo add tests for invalid codepoints - */ - public function testCheckForIllegalCodepoints() - { - $smoke = 'Smoke test'; - $err = UTF8Utils::checkForIllegalCodepoints($smoke); - $this->assertEmpty($err); - - $data = "Foo Bar \0 Baz"; - $errors = UTF8Utils::checkForIllegalCodepoints($data); - $this->assertContains('null-character', $errors); - } -} |