Skip to content

Commit

Permalink
Maybe this will help?
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Dec 10, 2019
1 parent bd656d6 commit fcdf3f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/BaseTestCase.php
Expand Up @@ -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
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit fcdf3f3

Please sign in to comment.