summaryrefslogtreecommitdiff
path: root/test/HTML5/Parser/UTF8UtilsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/HTML5/Parser/UTF8UtilsTest.php')
-rw-r--r--test/HTML5/Parser/UTF8UtilsTest.php34
1 files changed, 18 insertions, 16 deletions
diff --git a/test/HTML5/Parser/UTF8UtilsTest.php b/test/HTML5/Parser/UTF8UtilsTest.php
index 0e8555a..72c26a4 100644
--- a/test/HTML5/Parser/UTF8UtilsTest.php
+++ b/test/HTML5/Parser/UTF8UtilsTest.php
@@ -6,21 +6,23 @@ 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);
- }
+ 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);
+ /**
+ * @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);
- }
-} \ No newline at end of file
+ $data = "Foo Bar \0 Baz";
+ $errors = UTF8Utils::checkForIllegalCodepoints($data);
+ $this->assertContains('null-character', $errors);
+ }
+}