We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a352c8 + 093c61f commit 4e315b5Copy full SHA for 4e315b5
tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
@@ -12,6 +12,7 @@
12
use Doctrine\Tests\DbalFunctionalTestCase;
13
use Error;
14
use Exception;
15
+use PDO;
16
use RuntimeException;
17
use Throwable;
18
use function in_array;
@@ -311,4 +312,16 @@ public function testDeterminesDatabasePlatformWhenConnectingToNonExistentDatabas
311
312
313
$connection->close();
314
}
315
+
316
+ /**
317
+ * @requires extension pdo_sqlite
318
+ */
319
+ public function testUserProvidedPDOConnection() : void
320
+ {
321
+ self::assertTrue(
322
+ DriverManager::getConnection([
323
+ 'pdo' => new PDO('sqlite::memory:'),
324
+ ])->ping()
325
+ );
326
+ }
327
0 commit comments