Skip to content
Permalink
Browse files

Update test.

  • Loading branch information...
ADmad committed Apr 30, 2018
1 parent ae7059c commit 9e712f515a040f510500a4feeda07fb3a8ad2107
Showing with 5 additions and 3 deletions.
  1. +5 −3 tests/TestCase/BasicsTest.php
@@ -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);

0 comments on commit 9e712f5

Please sign in to comment.
You can’t perform that action at this time.