src/Scenario/ScenarioYamlBuilder.php
private function configureBuilder(array $scenario): ScenarioYamlBuilder
    {
        foreach ($scenario as &$options) {
            foreach ($options as $optionName => $optionValues) {
                if (isset($this->yamlOptionsMap[$optionName])) {
                    $methodName = $this->yamlOptionsMap[$optionName];
                    if ('run' != $methodName) {
                        foreach ((array) $optionValues as $optionValue) {
                            $this->{$methodName}($optionValue);
                        }
                    } else {
                        if (!\is_callable($optionValues)) {
                            $this->parseParameter($optionValues);
                        }

                        $this->run($optionValues);
                    }
                } else {
                    throw new \RuntimeException('Unknow option '.$optionName);
                }
            }
        }

        return $this;
    }
private function configureBuilder(array $scenario): ScenarioYamlBuilder
    {
        foreach ($scenario as &$options) {
            foreach ($options as $optionName => $optionValues) {
                if (isset($this->yamlOptionsMap[$optionName])) {
                    $methodName = $this->yamlOptionsMap[$optionName];
                    if ('run' != $methodName) {
                        foreach ((array) $optionValues as $optionValue) {
                            $this->{$methodName}($optionValue);
                        }
                    } else {
                        if (!\is_callable($optionValues)) {
                            $this->parseParameter($optionValues);
                        }

                        $this->run($optionValues);
                    }
                } else {
                    throw new \RuntimeException('Unknow option '.$optionName);
                }
            }
        }

        return $this;
    }
@param array $scenario

@return ScenarioYamlBuilder