本文整理汇总了PHP中Converter::setRemotePort方法的典型用法代码示例。如果您正苦于以下问题:PHP Converter::setRemotePort方法的具体用法?PHP Converter::setRemotePort怎么用?PHP Converter::setRemotePort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Converter
的用法示例。
在下文中一共展示了Converter::setRemotePort方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _applyOptionsAndFlags
protected function _applyOptionsAndFlags($options, $flags)
{
if (is_array($options)) {
foreach ($options as $opt) {
if (is_string($opt)) {
switch ($opt) {
case 'recursive':
$this->_recursive = true;
break;
case 'use-hash-postfix':
$this->_useHashFilePostfix = true;
break;
case 'selenium2':
$this->_converter->useSelenium2();
break;
default:
print "Unknown option \"{$opt}\".\n";
exit(1);
}
} else {
if (is_array($opt)) {
switch ($opt[0]) {
case 'php-prefix':
$this->_phpFilePrefix = $opt[1];
break;
case 'php-postfix':
$this->_phpFilePostfix = $opt[1];
break;
case 'browser':
$this->_converter->setBrowser($opt[1]);
break;
case 'browser-url':
$this->_converter->setTestUrl($opt[1]);
break;
case 'remote-host':
$this->_converter->setRemoteHost($opt[1]);
break;
case 'remote-port':
$this->_converter->setRemotePort($opt[1]);
break;
case 'dest':
$this->_destFolder = $opt[1];
break;
case 'class-prefix':
$this->_converter->setTplClassPrefix($opt[1]);
break;
case 'use-hash-postfix':
$this->_useHashFilePostfix = true;
break;
case 'files-pattern':
$this->_htmlPattern = $opt[1];
break;
case 'output-tpl':
$this->_tplFile = $opt[1];
break;
case 'custom-param1':
$this->_converter->setTplCustomParam1($opt[1]);
break;
case 'custom-param2':
$this->_converter->setTplCustomParam2($opt[1]);
break;
case 'browsers':
$this->_browsers = $opt[1];
$this->_converter->browsers = $this->_browsers;
break;
case 'project-build':
$this->_projectBuild = $opt[1];
$this->_converter->_projectBuild = $this->_projectBuild;
break;
case 'project-name':
$this->_projectName = $opt[1];
$this->_converter->_projectName = $this->_projectName;
break;
case 'screenshotsOnEveryStep':
$this->_converter->screenshotsOnEveryStep = $opt[1];
break;
case 'browserstackLocal':
$this->_converter->browserstackLocal = $opt[1];
break;
case 'browserstackLocalIdentifier':
$this->_converter->browserstackLocalIdentifier = $opt[1];
break;
case 'override-selenium-params':
if (isset($opt[1])) {
$this->_converter->overrideSeleniumParams = $opt[1];
}
break;
case 'single-test':
if (isset($opt[1])) {
$this->_converter->singleTest = true;
}
break;
default:
print "Unknown option \"{$opt[0]}\".\n";
exit(1);
}
}
}
}
}
//.........这里部分代码省略.........