mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-11 07:29:37 +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:
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
namespace Testcontainers\Tests\Integration;
|
||||
|
||||
use Predis\Client;
|
||||
use Testcontainers\Container\RedisContainer;
|
||||
use Testcontainers\Modules\RedisContainer;
|
||||
|
||||
class RedisContainerTest extends ContainerTestCase
|
||||
{
|
||||
@@ -18,8 +18,8 @@ class RedisContainerTest extends ContainerTestCase
|
||||
public function testRedisContainer(): void
|
||||
{
|
||||
$redisClient = new Client([
|
||||
'host' => 'localhost',
|
||||
'port' => 6379,
|
||||
'host' => self::$container->getHost(),
|
||||
'port' => self::$container->getFirstMappedPort(),
|
||||
]);
|
||||
|
||||
$redisClient->ping();
|
||||
|
||||
Reference in New Issue
Block a user