diff --git a/src/PdoInterface.php b/src/PdoInterface.php index 6e86a687..a15f358d 100644 --- a/src/PdoInterface.php +++ b/src/PdoInterface.php @@ -186,5 +186,5 @@ public function setAttribute(int $attribute, mixed $value): bool; * @return array * */ - //public static function getAvailableDrivers(): array; + public static function getAvailableDrivers(): array; } diff --git a/tests/ExtendedPdoTest.php b/tests/ExtendedPdoTest.php index 68b331bb..463f33a1 100644 --- a/tests/ExtendedPdoTest.php +++ b/tests/ExtendedPdoTest.php @@ -741,4 +741,10 @@ public function testSetAttribute() $result = $this->pdo->setAttribute(\PDO::ATTR_CASE, \PDO::CASE_NATURAL); $this->assertTrue($result); } + + public function testGetAvailableDrivers() + { + $drivers = $this->pdo::getAvailableDrivers(); + $this->assertTrue((bool)count($drivers)); + } }