From: Seamus Lee Date: Tue, 7 Nov 2023 22:14:24 +0000 (+1100) Subject: dev/core#4072 Fix Dynamic property in CiviTestListener X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=35d96b887317e9271c8954b8fb0caf473a9a5bbc;p=civicrm-core.git dev/core#4072 Fix Dynamic property in CiviTestListener --- diff --git a/Civi/Test/CiviTestListener.php b/Civi/Test/CiviTestListener.php index fbd6fd8878..2fa0627d9f 100644 --- a/Civi/Test/CiviTestListener.php +++ b/Civi/Test/CiviTestListener.php @@ -38,6 +38,11 @@ else { */ private $tx; + /** + * @var \CRM_Core_TemporaryErrorScope|null + */ + public $errorScope; + public function startTestSuite(\PHPUnit\Framework\TestSuite $suite) { $byInterface = $this->indexTestsByInterface($suite->tests()); $this->validateGroups($byInterface); diff --git a/Civi/Test/Legacy/CiviTestListener.php b/Civi/Test/Legacy/CiviTestListener.php index 4889da722b..f1cbbe0dcf 100644 --- a/Civi/Test/Legacy/CiviTestListener.php +++ b/Civi/Test/Legacy/CiviTestListener.php @@ -28,6 +28,11 @@ class CiviTestListener extends \PHPUnit_Framework_BaseTestListener { */ private $tx; + /** + * @var \CRM_Core_TemporaryErrorScope|null + */ + public $errorScope; + public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) { $byInterface = $this->indexTestsByInterface($suite->tests()); $this->validateGroups($byInterface);