Beispiel #1
0
 /**
  * @return string
  */
 public function getPath()
 {
     if ($this->path === null) {
         if ($this->parent === null || $this->parent->getPath() === null || $this->parent->getPath() === false) {
             $this->path = $this->name;
         } else {
             $this->path = $this->parent->getPath() . '/' . $this->name;
         }
     }
     return $this->path;
 }
Beispiel #2
0
 /**
  * @return string
  */
 public function getPath()
 {
     if ($this->path === NULL) {
         if ($this->parent === NULL) {
             $this->path = $this->name;
         } else {
             $this->path = $this->parent->getPath() . '/' . $this->name;
         }
     }
     return $this->path;
 }
Beispiel #3
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));
 }
 /**
  * @param Text_Template                $template
  * @param PHP_CodeCoverage_Report_Node $node
  */
 protected function setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node)
 {
     $template->setVar(array('id' => $node->getId(), 'full_path' => $node->getPath(), 'breadcrumbs' => $this->getBreadcrumbs($node), 'charset' => $this->charset, 'date' => $this->date, 'version' => PHP_CodeCoverage_Version::id(), 'php_version' => PHP_VERSION, 'generator' => $this->generator, 'low_upper_bound' => $this->lowUpperBound, 'high_lower_bound' => $this->highLowerBound));
 }