src/Behat/Behat/Hook/Call/RuntimeScenarioHook.php
protected function isMatchNameFilter(ScenarioInterface $scenario, $filterString)
    {
        $filter = new NameFilter($filterString);

        return $filter->isScenarioMatch($scenario);
    }
protected function isMatchNameFilter(ScenarioInterface $scenario, $filterString)
    {
        $filter = new NameFilter($filterString);

        return $filter->isScenarioMatch($scenario);
    }
protected function isMatchNameFilter ( ScenarioInterface $ scenario , $ filterString ) { $ filter = new NameFilter ( $ filterString ) ; return $ filter -> isScenarioMatch ( $ scenario ) ; }
Checks if scenario matches name filter.

@param ScenarioInterface $scenario
@param string            $filterString

@return Boolean
Checks if scenario matches name filter .