Skip to content

Commit

Permalink
Remove convertWarningToExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Sep 20, 2021
1 parent af8c61f commit fbb1f6d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/BaseTestCase.php
Expand Up @@ -22,11 +22,6 @@ class BaseTestCase extends PHPUnit_Framework_TestCase
*/
private $errors;

/**
* @var bool
*/
protected $convertWarningsToExceptions = false;

protected function setUp()
{
$this->config = HTMLPurifier_HTML5Config::create(null);
Expand All @@ -46,10 +41,6 @@ protected function setUp()
*/
public function errorHandler($errno, $message)
{
if ($this->convertWarningsToExceptions) {
throw new RuntimeException(sprintf('[%s] %s', $errno, $message));
}

$this->errors[] = compact('errno', 'message');
}

Expand Down

0 comments on commit fbb1f6d

Please sign in to comment.