PHP Class Behat\Gherkin\Filter\PathsFilter

Author: Konstantin Kudryashov ([email protected])
Inheritance: extends Behat\Gherkin\Filter\SimpleFilter
Afficher le fichier Open project: behat/gherkin Class Usage Examples

Protected Properties

Свойство Type Description
$filterPaths

Méthodes publiques

Méthode Description
__construct ( array $paths ) Initializes filter.
isFeatureMatch ( Behat\Gherkin\Node\FeatureNode $feature ) : boolean Checks if Feature matches specified filter.
isScenarioMatch ( Behat\Gherkin\Node\ScenarioInterface $scenario ) : false Checks if scenario or outline matches specified filter.

Method Details

__construct() public méthode

Initializes filter.
public __construct ( array $paths )
$paths array List of approved paths

isFeatureMatch() public méthode

Checks if Feature matches specified filter.
public isFeatureMatch ( Behat\Gherkin\Node\FeatureNode $feature ) : boolean
$feature Behat\Gherkin\Node\FeatureNode Feature instance
Résultat boolean

isScenarioMatch() public méthode

Checks if scenario or outline matches specified filter.
public isScenarioMatch ( Behat\Gherkin\Node\ScenarioInterface $scenario ) : false
$scenario Behat\Gherkin\Node\ScenarioInterface Scenario or Outline node instance
Résultat false This filter is designed to work only with features

Property Details

$filterPaths protected_oe property

protected $filterPaths