From 43621f2fc14d83d81e403b0da45b3f34ef0586de Mon Sep 17 00:00:00 2001
From: tenzap <fabstz-it@yahoo.fr>
Date: Mon, 19 Jun 2023 20:20:35 +0200
Subject: [PATCH 4/8] fix error with phpunit10 (cannot override runBare())

 Fatal error: Cannot override final method PHPUnit\Framework\TestCase::runBare() in tests/mocks/ci_testcase.php on line 351
---
 tests/mocks/ci_testcase.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- a/tests/mocks/ci_testcase.php
+++ b/tests/mocks/ci_testcase.php
@@ -36,6 +36,7 @@
 
 	public function setUp(): void
 	{
+		self::$ci_test_instance = $this;
 		// Setup VFS with base directories
 		$this->ci_vfs_root = vfsStream::setup('');
 		$this->ci_app_root = vfsStream::newDirectory('application')->at($this->ci_vfs_root);
@@ -348,11 +349,13 @@
 	 * happen in setUp, but someone is bound to forget to
 	 * call the parent method and debugging this is no fun.
 	 */
+	/*
 	public function runBare(): void
 	{
 		self::$ci_test_instance = $this;
 		parent::runBare();
 	}
+	*/
 
 	// --------------------------------------------------------------------
 
