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\Output\Node\Printer;
13 use Behat\Gherkin\Node\ExampleNode;
14 use Behat\Gherkin\Node\FeatureNode;
15 use Behat\Testwork\Output\Formatter;
16 use Behat\Testwork\Tester\Result\TestResult;
19 * Prints example headers and footers.
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface ExamplePrinter
26 * Prints example header using provided printer.
28 * @param Formatter $formatter
29 * @param FeatureNode $feature
30 * @param ExampleNode $example
32 public function printHeader(Formatter $formatter, FeatureNode $feature, ExampleNode $example);
35 * Prints example footer using provided printer.
37 * @param Formatter $formatter
38 * @param TestResult $result
40 public function printFooter(Formatter $formatter, TestResult $result);