From fcdf3f355aa5b72c9d078bbe254225523746cf1a Mon Sep 17 00:00:00 2001 From: xemlock Date: Tue, 10 Dec 2019 21:45:36 +0100 Subject: [PATCH] Maybe this will help? --- tests/BaseTestCase.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php index 4895edd..fa56964 100644 --- a/tests/BaseTestCase.php +++ b/tests/BaseTestCase.php @@ -21,6 +21,11 @@ protected function setUp() set_error_handler(array($this, 'errorHandler'), E_USER_NOTICE | E_USER_WARNING); } + protected function tearDown() + { + set_error_handler(null); + } + /** * @param int $errno * @param string $message @@ -39,7 +44,7 @@ public function assertPurification($input, $expect = null) $purifier = new HTMLPurifier($this->config); $output = $purifier->purify($input); - $this->assertSame($expect !== null ? $expect : $input, $output); + $this->assertEquals((string) ($expect !== null ? $expect : $input), $output); } /**