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); } }