Пример #1
0
 /**
  * @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
0
 /**
  * @covers \SebastianBergmann\Environment\Runtime::getVendorUrl
  *
  * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
  */
 public function testVendorUrlCanBeRetrieved()
 {
     $this->assertInternalType('string', $this->env->getVendorUrl());
 }
Пример #3
0
 /**
  * @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;
 }