Skip to content

Commit 4e315b5

Browse files
committed
Merge branch 'bpo/2.9/#3549' into 2.9
2 parents 9a352c8 + 093c61f commit 4e315b5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Doctrine\Tests\DbalFunctionalTestCase;
1313
use Error;
1414
use Exception;
15+
use PDO;
1516
use RuntimeException;
1617
use Throwable;
1718
use function in_array;
@@ -311,4 +312,16 @@ public function testDeterminesDatabasePlatformWhenConnectingToNonExistentDatabas
311312

312313
$connection->close();
313314
}
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+
}
314327
}

0 commit comments

Comments
 (0)