/**
  * Captures outline into the ivar on outline BEFORE event.
  *
  * @param Event $event
  */
 private function captureOutlineOnBeforeOutlineEvent(Event $event)
 {
     if (!$event instanceof BeforeOutlineTested) {
         return;
     }
     $this->outline = $event->getOutline();
 }
 /**
  * Captures outline into the ivar on outline BEFORE event.
  *
  * @param Event $event
  */
 private function captureOutlineOnBeforeOutlineEvent(Event $event)
 {
     if (!$event instanceof BeforeOutlineTested) {
         return;
     }
     $outline = $event->getOutline();
     foreach ($outline->getExamples() as $example) {
         $this->lineScenarioMap[$example->getLine()] = $outline;
     }
 }
Example #3
0
 /**
  * Prints outline header and captures outline into ivar on BEFORE event.
  *
  * @param Formatter $formatter
  * @param Event     $event
  */
 private function printAndCaptureOutlineHeaderOnBeforeEvent(Formatter $formatter, Event $event)
 {
     if (!$event instanceof BeforeOutlineTested) {
         return;
     }
     $this->outlinePrinter->printHeader($formatter, $event->getFeature(), $event->getOutline());
 }