Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function printFeatureOrScenarioTags(AbstractNode $node)
 {
     if (count($tags = $node->getOwnTags())) {
         $this->writeln('<ul class="tags">');
         foreach ($tags as $tag) {
             $this->writeln("<li>@{$tag}</li>");
         }
         $this->writeln('</ul>');
     }
 }
Example #2
0
 /**
  * Prints node tags.
  *
  * @param AbstractNode $node
  */
 protected function printFeatureOrScenarioTags(AbstractNode $node)
 {
     if (count($tags = $node->getOwnTags())) {
         $tags = implode(' ', array_map(function ($tag) {
             return '@' . $tag;
         }, $tags));
         if ($node instanceof FeatureNode) {
             $indent = '';
         } else {
             $indent = '  ';
         }
         $this->writeln("{$indent}{+tag}{$tags}{-tag}");
     }
 }