|
|
@ -39,6 +39,7 @@ class HtmlTest extends TestCase |
|
|
|
public function testEncode() |
|
|
|
public function testEncode() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->assertEquals("a<>&"'<EFBFBD>", Html::encode("a<>&\"'\x80")); |
|
|
|
$this->assertEquals("a<>&"'<EFBFBD>", Html::encode("a<>&\"'\x80")); |
|
|
|
|
|
|
|
$this->assertEquals('Sam & Dark', Html::encode('Sam & Dark')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testDecode() |
|
|
|
public function testDecode() |
|
|
|