4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Definition\Printer;
13 use Behat\Testwork\Suite\Suite;
16 * Prints simple definitions list.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 final class ConsoleDefinitionListPrinter extends ConsoleDefinitionPrinter
25 public function printDefinitions(Suite $suite, $definitions)
29 foreach ($definitions as $definition) {
30 $definition = $this->translateDefinition($suite, $definition);
33 '{suite} <def_dimmed>|</def_dimmed> <info>{type}</info> <def_regex>{regex}</def_regex>', array(
34 '{suite}' => $suite->getName(),
35 '{type}' => $this->getDefinitionType($definition, true),
36 '{regex}' => $definition->getPattern(),
41 $this->write(rtrim(implode(PHP_EOL, $output)));