| 1 | <?php |
||
| 21 | class PathsFilter extends SimpleFilter |
||
| 22 | { |
||
| 23 | protected $filterPaths = array(); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Initializes filter. |
||
| 27 | * |
||
| 28 | * @param string[] $paths List of approved paths |
||
| 29 | */ |
||
| 30 | 1 | public function __construct(array $paths) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Checks if Feature matches specified filter. |
||
| 37 | * |
||
| 38 | * @param FeatureNode $feature Feature instance |
||
| 39 | * |
||
| 40 | * @return Boolean |
||
| 41 | */ |
||
| 42 | 1 | public function isFeatureMatch(FeatureNode $feature) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Checks if scenario or outline matches specified filter. |
||
| 59 | * |
||
| 60 | * @param ScenarioInterface $scenario Scenario or Outline node instance |
||
| 61 | * |
||
| 62 | * @return false This filter is designed to work only with features |
||
| 63 | */ |
||
| 64 | public function isScenarioMatch(ScenarioInterface $scenario) |
||
| 68 | } |
||
| 69 |