/**
  * @param Node\Suite $suite
  *
  * @return array
  */
 protected function processSuite(Node\Suite $suite)
 {
     $currentSuite = [];
     if (is_array($suite->getFeatures())) {
         foreach ($suite->getFeatures() as $feature) {
             array_push($currentSuite, $this->processFeature($feature));
         }
     }
     return $currentSuite;
 }
 /**
  * @param BehatEvent\AfterFeatureTested $event
  */
 public function onAfterFeatureTested(BehatEvent\AfterFeatureTested $event)
 {
     $this->currentSuite->addFeature($this->currentFeature);
     if ($this->currentFeature->allPassed()) {
         $this->passedFeatures[] = $this->currentFeature;
     } else {
         $this->failedFeatures[] = $this->currentFeature;
     }
 }