mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
Add code coverage configuration (phpunit.xml source filter), baseline coverage report (21.27% lines), gitignore coverage/ and .phpunit.result.cache; remove deprecated setAccessible() calls
This commit is contained in:
@@ -17,11 +17,9 @@ class TestDatabaseInstance extends Database
|
||||
{
|
||||
// Inject PDO directly via reflection, then flag as ready
|
||||
$ref = new ReflectionProperty(Database::class, 'pdo');
|
||||
$ref->setAccessible(true);
|
||||
$ref->setValue($this, $pdo);
|
||||
|
||||
$pathRef = new ReflectionProperty(Database::class, 'dbPath');
|
||||
$pathRef->setAccessible(true);
|
||||
$pathRef->setValue($this, ':memory:');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user