Description: Update tests to work with PHPUnit 12
 PHP Fatal error:  Cannot override final method PHPUnit\Framework\TestCase::__construct() in /src/tests/mocks/ci_testcase.php on line 29
 .
 Fatal error: Cannot override final method PHPUnit\Framework\TestCase::__construct() in /src/tests/mocks/ci_testcase.php on line 29
Bug: https://github.com/bcit-ci/CodeIgniter/issues/6319
Origin: self
Author: Fab Stz <fabstz-it@yahoo.fr>
Last-Update: 2025-08-26

--- a/tests/mocks/ci_testcase.php
+++ b/tests/mocks/ci_testcase.php
@@ -26,16 +26,9 @@ class CI_TestCase extends \PHPUnit\Framework\TestCase {
 
 	// --------------------------------------------------------------------
 
-	public function __construct($name = null, array $data = array(), $dataName = '')
-	{
-		parent::__construct($name, $data, $dataName);
-		$this->ci_instance = new stdClass();
-	}
-
-	// --------------------------------------------------------------------
-
 	public function setUp(): void
 	{
+		$this->ci_instance = new stdClass();
 		self::$ci_test_instance = $this;
 		// Setup VFS with base directories
 		$this->ci_vfs_root = vfsStream::setup('');
