Пример #1
0
 /**
  * @param PHP_CodeCoverage $coverage
  */
 public function create(PHP_CodeCoverage $coverage)
 {
     $files = $coverage->getData();
     $commonPath = $this->reducePaths($files);
     $root = new PHP_CodeCoverage_Report_Node_Directory($commonPath, null);
     $this->addItems($root, $this->buildDirectoryStructure($files), $coverage->getTests(), $coverage->getCacheTokens());
     return $root;
 }