mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-12 05:29:36 +00:00
Fixes in WaitForHealthCheck params and legacy tests
This commit is contained in:
@@ -4,6 +4,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Testcontainers\Container;
|
||||
|
||||
use Testcontainers\Utils\PortGenerator\FixedPortGenerator;
|
||||
|
||||
/**
|
||||
* Added for backward compatibility.
|
||||
* @deprecated Use GenericContainer instead.
|
||||
@@ -52,6 +54,7 @@ class Container extends GenericContainer
|
||||
*/
|
||||
public function withPort(string $localPort, string $containerPort): self
|
||||
{
|
||||
$this->withPortGenerator(new FixedPortGenerator([(int)$localPort]));
|
||||
return $this->withExposedPorts($containerPort);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user