PHP Class Behat\Gherkin\Filter\PathsFilter

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

Protected Properties

Property Type Description
$filterPaths

Public Methods

Method 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 method

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

isFeatureMatch() public method

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

isScenarioMatch() public method

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
return false This filter is designed to work only with features

Property Details

$filterPaths protected_oe property

protected $filterPaths