public __construct ( array $portRange = [8000, 8999] ) | ||
$portRange | array |
public function __construct(array $portRange = [8000, 8999])
{
$port = $this->findPort($portRange);
$this->address = sprintf('127.0.0.1:%d', $port);
$this->startServer();
}