src/Behat/Behat/Output/Node/EventListener/AST/OutlineTableListener.php
private function printExampleRowOnAfterExampleEvent(Formatter $formatter, Event $event, $eventName)
    {
        if (!$event instanceof AfterScenarioTested || ExampleTested::AFTER !== $eventName) {
            return;
        }

        $example = $event->getScenario();

        $this->exampleSetupPrinter->printSetup($formatter, $this->exampleSetup);

        foreach ($this->stepBeforeTestedEvents as $beforeEvent) {
            $this->stepSetupPrinter->printSetup($formatter, $beforeEvent->getSetup());
        }

        $this->exampleRowPrinter->printExampleRow($formatter, $this->outline, $example, $this->stepAfterTestedEvents);

        foreach ($this->stepAfterTestedEvents as $afterEvent) {
            $this->stepSetupPrinter->printTeardown($formatter, $afterEvent->getTeardown());
        }

        $this->exampleSetupPrinter->printTeardown($formatter, $event->getTeardown());

        $this->exampleSetup = null;
        $this->stepBeforeTestedEvents = array();
        $this->stepAfterTestedEvents = array();
    }
private function printExampleRowOnAfterExampleEvent(Formatter $formatter, Event $event, $eventName)
    {
        if (!$event instanceof AfterScenarioTested || ExampleTested::AFTER !== $eventName) {
            return;
        }

        $example = $event->getScenario();

        $this->exampleSetupPrinter->printSetup($formatter, $this->exampleSetup);

        foreach ($this->stepBeforeTestedEvents as $beforeEvent) {
            $this->stepSetupPrinter->printSetup($formatter, $beforeEvent->getSetup());
        }

        $this->exampleRowPrinter->printExampleRow($formatter, $this->outline, $example, $this->stepAfterTestedEvents);

        foreach ($this->stepAfterTestedEvents as $afterEvent) {
            $this->stepSetupPrinter->printTeardown($formatter, $afterEvent->getTeardown());
        }

        $this->exampleSetupPrinter->printTeardown($formatter, $event->getTeardown());

        $this->exampleSetup = null;
        $this->stepBeforeTestedEvents = array();
        $this->stepAfterTestedEvents = array();
    }
private function printExampleRowOnAfterExampleEvent ( Formatter $ formatter , Event $ event , $ eventName ) { if ( ! $ event instanceof AfterScenarioTested || ExampleTested :: AFTER !== $ eventName ) { return ; } $ example = $ event -> getScenario ( ) ; $ this -> exampleSetupPrinter -> printSetup ( $ formatter , $ this -> exampleSetup ) ; foreach ( $ this -> stepBeforeTestedEvents as $ beforeEvent ) { $ this -> stepSetupPrinter -> printSetup ( $ formatter , $ beforeEvent -> getSetup ( ) ) ; } $ this -> exampleRowPrinter -> printExampleRow ( $ formatter , $ this -> outline , $ example , $ this -> stepAfterTestedEvents ) ; foreach ( $ this -> stepAfterTestedEvents as $ afterEvent ) { $ this -> stepSetupPrinter -> printTeardown ( $ formatter , $ afterEvent -> getTeardown ( ) ) ; } $ this -> exampleSetupPrinter -> printTeardown ( $ formatter , $ event -> getTeardown ( ) ) ; $ this -> exampleSetup = null ; $ this -> stepBeforeTestedEvents = array ( ) ; $ this -> stepAfterTestedEvents = array ( ) ; }
Prints example row on example AFTER event.

@param Formatter $formatter
@param Event     $event
@param string    $eventName
Prints example row on example AFTER event .