dev/core#4072 Fix Dynamic property in CiviTestListener
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 7 Nov 2023 22:14:24 +0000 (09:14 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 7 Nov 2023 22:14:24 +0000 (09:14 +1100)
Civi/Test/CiviTestListener.php
Civi/Test/Legacy/CiviTestListener.php

index fbd6fd88785a48eff21bb134cc5a75b92152e64c..2fa0627d9f2778f3e19acbc77547b02b83916403 100644 (file)
@@ -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);
index 4889da722b90cba322a2ffdda2e384cd4f481238..f1cbbe0dcf04913f75eec7a54a5927fb18187128 100644 (file)
@@ -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);