1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Issue #5443 - PHP 8.4 test fixes.

This commit is contained in:
camer0n
2025-03-17 13:44:04 -07:00
parent d58f199f28
commit 1b54602be1
17 changed files with 362 additions and 158 deletions

View File

@@ -82,10 +82,16 @@ class e_db_mysqlTest extends e_db_abstractTest
public function testDb_Close()
{
$db_impl = $this->getDbImplementation();
$this->assertFalse(@empty($db_impl->server_info));
$this->db->db_Close();
$this->assertTrue(@empty($db_impl->server_info));
$db_impl = $this->getDbImplementation();
if (!empty($db_impl->server_info))
{
$this->db->db_Close();
self::assertTrue(empty($db_impl->server_info));
}
else
{
self::assertTrue(true); // Connection is already closed, so the test passes
}
}
private function getDbImplementation()