本文整理匯總了PHP中SebastianBergmann\Environment\Runtime::getVersion方法的典型用法代碼示例。如果您正苦於以下問題:PHP Runtime::getVersion方法的具體用法?PHP Runtime::getVersion怎麽用?PHP Runtime::getVersion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SebastianBergmann\Environment\Runtime
的用法示例。
在下文中一共展示了Runtime::getVersion方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setCommonTemplateVariables
/**
* @param Text_Template $template
* @param PHP_CodeCoverage_Report_Node $node
*/
protected function setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node)
{
$runtime = new Runtime();
$template->setVar(array('id' => $node->getId(), 'full_path' => $node->getPath(), 'path_to_root' => $this->getPathToRoot($node), 'breadcrumbs' => $this->getBreadcrumbs($node), 'date' => $this->date, 'version' => $this->version, 'runtime_name' => $runtime->getName(), 'runtime_version' => $runtime->getVersion(), 'runtime_link' => $runtime->getVendorUrl(), 'generator' => $this->generator, 'low_upper_bound' => $this->lowUpperBound, 'high_lower_bound' => $this->highLowerBound));
}
示例2: testVersionCanBeRetrieved
/**
* @covers \SebastianBergmann\Environment\Runtime::getVersion
*
* @uses \SebastianBergmann\Environment\Runtime::isHHVM
*/
public function testVersionCanBeRetrieved()
{
$this->assertInternalType('string', $this->env->getVersion());
}
示例3: getRuntimeString
/**
* @return string
*/
private function getRuntimeString()
{
$runtime = new Runtime();
$buffer = sprintf('<a href="%s" target="_top">%s %s</a>', $runtime->getVendorUrl(), $runtime->getName(), $runtime->getVersion());
if ($runtime->hasXdebug() && !$runtime->hasPHPDBGCodeCoverage()) {
$buffer .= sprintf(' with <a href="https://xdebug.org/">Xdebug %s</a>', phpversion('xdebug'));
}
return $buffer;
}