mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-12 08:29:34 +00:00
- Move most of the stuff for backwards compatibility support into one class
- Added random port logic - Updated wait wtrategies - API alignments to make it similar to other official implementations - ...
This commit is contained in:
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Testcontainers\Tests\Integration;
|
||||
|
||||
use Testcontainers\Container\MariaDBContainer;
|
||||
use Testcontainers\Modules\MariaDBContainer;
|
||||
|
||||
class MariaDBContainerTest extends ContainerTestCase
|
||||
{
|
||||
@@ -19,7 +19,11 @@ class MariaDBContainerTest extends ContainerTestCase
|
||||
public function testMariaDBContainer(): void
|
||||
{
|
||||
$pdo = new \PDO(
|
||||
sprintf('mysql:host=%s;port=3306', self::$container->getAddress()),
|
||||
sprintf(
|
||||
'mysql:host=%s;port=%d',
|
||||
self::$container->getHost(),
|
||||
self::$container->getFirstMappedPort()
|
||||
),
|
||||
'bar',
|
||||
'baz',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user