/** * {@inheritdoc} */ public function filterMatches(HookScope $scope) { if (!$scope instanceof ScenarioScope) { return false; } if (null === ($filterString = $this->getFilterString())) { return true; } return $this->isMatch($scope->getFeature(), $scope->getScenario(), $filterString); }