mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-08 17:29:29 +00:00
fix: pdo_pgsql usage
This commit is contained in:
@@ -106,12 +106,12 @@ class ContainerTest extends TestCase
|
||||
|
||||
|
||||
$pdo = new \PDO(
|
||||
sprintf('postgres:host=%s;port=5432', $container->getAddress()),
|
||||
sprintf('pgsql:host=%s;port=5432;dbname=foo', $container->getAddress()),
|
||||
'test',
|
||||
'test',
|
||||
);
|
||||
|
||||
$query = $pdo->query('SHOW databases');
|
||||
$query = $pdo->query('SELECT datname FROM pg_database');
|
||||
|
||||
$this->assertInstanceOf(\PDOStatement::class, $query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user