Skip to content

Commit

Permalink
Merge branch 'bpo/2.9/#3549' into 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed May 22, 2019
2 parents 9a352c8 + 093c61f commit 4e315b5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Doctrine\Tests\DbalFunctionalTestCase;
use Error;
use Exception;
use PDO;
use RuntimeException;
use Throwable;
use function in_array;
Expand Down Expand Up @@ -311,4 +312,16 @@ public function testDeterminesDatabasePlatformWhenConnectingToNonExistentDatabas

$connection->close();
}

/**
* @requires extension pdo_sqlite
*/
public function testUserProvidedPDOConnection() : void
{
self::assertTrue(
DriverManager::getConnection([
'pdo' => new PDO('sqlite::memory:'),
])->ping()
);
}
}

0 comments on commit 4e315b5

Please sign in to comment.