From 9e712f515a040f510500a4feeda07fb3a8ad2107 Mon Sep 17 00:00:00 2001 From: ADmad Date: Mon, 30 Apr 2018 13:01:38 +0530 Subject: [PATCH] Update test. --- tests/TestCase/BasicsTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);