コード例 #1
0
 /**
  * Build a title by navigating a test's tree
  *
  * @param string $color
  * @param TestInterface $test
  * @return string
  */
 protected function getTitle($color, TestInterface $test)
 {
     $description = "";
     $test->forEachNodeTopDown(function (TestInterface $node) use(&$description) {
         $description .= " " . $node->getDescription();
     });
     return $this->color($color, trim($description));
 }