Files
testcontainers-php/src/Container/RedisContainer.php
T

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);
}
}