diff --git a/src/FakePdo.php b/src/FakePdo.php new file mode 100644 index 00000000..6774a1a3 --- /dev/null +++ b/src/FakePdo.php @@ -0,0 +1,27 @@ + $options any options + * @return PDO + */ + public static function getFakePdo( + string $connection_string, + string $username, + string $password, + array $options + ): PDO { + if (\PHP_MAJOR_VERSION === 8) { + return new Php8\FakePdo($connection_string, $username, $password, $options); + } + + return new Php7\FakePdo($connection_string, $username, $password, $options); + } +}