src/Behat/Behat/Definition/Printer/ConsoleDefinitionInformationPrinter.php
private function extractHeader(Suite $suite, Definition $definition)
    {
        $pattern = $definition->getPattern();
        $lines = array();
        $lines[] = strtr(
            '{suite} <def_dimmed>|</def_dimmed> <info>{type}</info> <def_regex>{regex}</def_regex>', array(
                '{suite}' => $suite->getName(),
                '{type}'  => $this->getDefinitionType($definition),
                '{regex}' => $pattern,
            )
        );

        return $lines;
    }
private function extractHeader(Suite $suite, Definition $definition)
    {
        $pattern = $definition->getPattern();
        $lines = array();
        $lines[] = strtr(
            '{suite} <def_dimmed>|</def_dimmed> <info>{type}</info> <def_regex>{regex}</def_regex>', array(
                '{suite}' => $suite->getName(),
                '{type}'  => $this->getDefinitionType($definition),
                '{regex}' => $pattern,
            )
        );

        return $lines;
    }
private function extractHeader ( Suite $ suite , Definition $ definition ) { $ pattern = $ definition -> getPattern ( ) ; $ lines = array ( ) ; $ lines [ ] = strtr ( '{suite} <def_dimmed>|</def_dimmed> <info>{type}</info> <def_regex>{regex}</def_regex>' , array ( '{suite}' => $ suite -> getName ( ) , '{type}' => $ this -> getDefinitionType ( $ definition ) , '{regex}' => $ pattern , ) ) ; return $ lines ; }
Extracts the formatted header from the definition.

@param Suite      $suite
@param Definition $definition

@return string[]
Extracts the formatted header from the definition .