Skip to content

Commit

Permalink
Removed the assertion which doesn't work with a user-provided PDO con…
Browse files Browse the repository at this point in the history
…nection
  • Loading branch information
morozov committed May 22, 2019
1 parent 9a352c8 commit 093c61f
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 093c61f

Please sign in to comment.