/** * {@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); }
/** * {@inheritdoc} */ public function filterMatches(HookScope $scope) { if (!$scope instanceof StepScope) { return false; } if (null === ($filterString = $this->getFilterString())) { return true; } if (!empty($filterString)) { $filter = new NameFilter($filterString); if ($filter->isFeatureMatch($scope->getFeature())) { return true; } return $this->isStepMatch($scope->getStep(), $filterString); } return false; }