public function testToSpecMerge() { $ports = new PortCollection('80', '22', '127.0.0.1:22:22'); $this->assertEquals(['80/tcp' => [['HostIp' => '', 'HostPort' => '']], '22/tcp' => [['HostIp' => '', 'HostPort' => ''], ['HostIp' => '127.0.0.1', 'HostPort' => '22']]], $ports->toSpec()); }
public function testToExposedPorts() { $ports = new PortCollection('80', '22'); $this->assertEquals(['80/tcp' => [], '22/tcp' => []], $ports->toExposedPorts()); }