src/Behat/Behat/Definition/Printer/ConsoleDefinitionInformationPrinter.php
private function extractDescription(Suite $suite, Definition $definition)
    {
        $definition = $this->translateDefinition($suite, $definition);

        $lines = array();
        if ($description = $definition->getDescription()) {
            foreach (explode("\n", $description) as $descriptionLine) {
                $lines[] = strtr(
                    '{space}<def_dimmed>|</def_dimmed> {description}', array(
                        '{space}'       => str_pad('', mb_strlen($suite->getName(), 'utf8') + 1),
                        '{description}' => $descriptionLine
                    )
                );
            }
        }

        return $lines;
    }
private function extractDescription(Suite $suite, Definition $definition)
    {
        $definition = $this->translateDefinition($suite, $definition);

        $lines = array();
        if ($description = $definition->getDescription()) {
            foreach (explode("\n", $description) as $descriptionLine) {
                $lines[] = strtr(
                    '{space}<def_dimmed>|</def_dimmed> {description}', array(
                        '{space}'       => str_pad('', mb_strlen($suite->getName(), 'utf8') + 1),
                        '{description}' => $descriptionLine
                    )
                );
            }
        }

        return $lines;
    }
private function extractDescription ( Suite $ suite , Definition $ definition ) { $ definition = $ this -> translateDefinition ( $ suite , $ definition ) ; $ lines = array ( ) ; if ( $ description = $ definition -> getDescription ( ) ) { foreach ( explode ( "\n" , $ description ) as $ descriptionLine ) { $ lines [ ] = strtr ( '{space}<def_dimmed>|</def_dimmed> {description}' , array ( '{space}' => str_pad ( '' , mb_strlen ( $ suite -> getName ( ) , 'utf8' ) + 1 ) , '{description}' => $ descriptionLine ) ) ; } } return $ lines ; }
Extracts the formatted description from the definition.

@param Suite      $suite
@param Definition $definition

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