diff --git a/tests/TestCase/BasicsTest.php b/tests/TestCase/BasicsTest.php index ace0b1705c6..b0111482d98 100644 --- a/tests/TestCase/BasicsTest.php +++ b/tests/TestCase/BasicsTest.php @@ -160,9 +160,11 @@ public function testH() $result = h($string, false); $this->assertEquals('<foo> &  ', $result); - $string = ' &  '; - $result = h($string, 'UTF-8'); - $this->assertEquals('<foo> & &nbsp;', $result); + $this->deprecated(function () { + $string = ' &  '; + $result = h($string, 'UTF-8'); + $this->assertEquals('<foo> & &nbsp;', $result); + }); $string = "An invalid\x80string"; $result = h($string);