private function _getScenarios($featurePath)
    {
        $scenarios = [];
        /* @var $featureNodes \Behat\Gherkin\Node\FeatureNode[] */
        $featureNodes = $this->container->get('gherkin')->load($featurePath);
        foreach ($featureNodes as $featureNode) {
            /* @var $scenario \Behat\Gherkin\Node\ScenarioNode */
            foreach ($featureNode->getScenarios() as $scenario) {
                $file = $scenario->getFile();
                $lines = [$scenario->getLine()];

                if ($scenario instanceof OutlineNode) {
                    $lines = $scenario->getExamples()->getRowLines();
                    array_shift($lines);
                }

                foreach ($lines as $line) {
                    $scenarios[] = "$file:$line";
                }
            }
        }

        return $scenarios;
    }
private function _getScenarios($featurePath)
    {
        $scenarios = [];
        /* @var $featureNodes \Behat\Gherkin\Node\FeatureNode[] */
        $featureNodes = $this->container->get('gherkin')->load($featurePath);
        foreach ($featureNodes as $featureNode) {
            /* @var $scenario \Behat\Gherkin\Node\ScenarioNode */
            foreach ($featureNode->getScenarios() as $scenario) {
                $file = $scenario->getFile();
                $lines = [$scenario->getLine()];

                if ($scenario instanceof OutlineNode) {
                    $lines = $scenario->getExamples()->getRowLines();
                    array_shift($lines);
                }

                foreach ($lines as $line) {
                    $scenarios[] = "$file:$line";
                }
            }
        }

        return $scenarios;
    }
private function _getScenarios ( $ featurePath ) { $ scenarios = [ ] ; /* @var $featureNodes \Behat\Gherkin\Node\FeatureNode[] */ $ featureNodes = $ this -> container -> get ( 'gherkin' ) -> load ( $ featurePath ) ; foreach ( $ featureNodes as $ featureNode ) { /* @var $scenario \Behat\Gherkin\Node\ScenarioNode */ foreach ( $ featureNode -> getScenarios ( ) as $ scenario ) { $ file = $ scenario -> getFile ( ) ; $ lines = [ $ scenario -> getLine ( ) ] ; if ( $ scenario instanceof OutlineNode ) { $ lines = $ scenario -> getExamples ( ) -> getRowLines ( ) ; array_shift ( $ lines ) ; } foreach ( $ lines as $ line ) { $ scenarios [ ] = "$file:$line" ; } } } return $ scenarios ; }
Returns an array of absolute feature file paths and scenarios line numbers.

The format of the file path:

/absolute/path/somefile.feature:XX

@param string $featurePath

@return array of strings
Returns an array of absolute feature file paths and scenarios line numbers .