mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-09 01:29:32 +00:00
22 lines
446 B
PHP
22 lines
446 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Testcontainer\Container;
|
|
|
|
use Testcontainer\Wait\WaitForLog;
|
|
|
|
class RedisContainer extends Container
|
|
{
|
|
private function __construct(string $version)
|
|
{
|
|
parent::__construct('redis:' . $version);
|
|
$this->withWait(new WaitForLog('Ready to accept connections'));
|
|
}
|
|
|
|
public static function make(string $version = 'latest'): self
|
|
{
|
|
return new self($version);
|
|
}
|
|
}
|