From fbb1f6d929e263dba262ab1d595006d82e3878c5 Mon Sep 17 00:00:00 2001 From: Mateusz Turcza Date: Mon, 20 Sep 2021 08:39:26 +0200 Subject: [PATCH] Remove convertWarningToExceptions --- tests/BaseTestCase.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php index 5aabd72..42a0555 100644 --- a/tests/BaseTestCase.php +++ b/tests/BaseTestCase.php @@ -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); @@ -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'); }