mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-08 18:29:47 +00:00
fix: Tests and postgres image
This commit is contained in:
@@ -101,11 +101,12 @@ class ContainerTest extends TestCase
|
||||
{
|
||||
$container = PostgresContainer::make('latest', 'test')
|
||||
->withPostgresUser('test')
|
||||
->withPostgresDatabase('foo');
|
||||
->withPostgresDatabase('foo')
|
||||
->run();
|
||||
|
||||
|
||||
$pdo = new \PDO(
|
||||
sprintf('postgres:host=%s;port=3306', $container->getAddress()),
|
||||
sprintf('postgres:host=%s;port=5432', $container->getAddress()),
|
||||
'test',
|
||||
'test',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user