Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 30, 2018
1 parent ae7059c commit 9e712f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/TestCase/BasicsTest.php
Expand Up @@ -160,9 +160,11 @@ public function testH()
$result = h($string, false);
$this->assertEquals('<foo> &  ', $result);

$string = '<foo> & &nbsp;';
$result = h($string, 'UTF-8');
$this->assertEquals('&lt;foo&gt; &amp; &amp;nbsp;', $result);
$this->deprecated(function () {
$string = '<foo> & &nbsp;';
$result = h($string, 'UTF-8');
$this->assertEquals('&lt;foo&gt; &amp; &amp;nbsp;', $result);
});

$string = "An invalid\x80string";
$result = h($string);
Expand Down

0 comments on commit 9e712f5

Please sign in to comment.