1 | <?php |
||
21 | class NameFilter extends SimpleFilter |
||
22 | { |
||
23 | protected $filterString; |
||
24 | |||
25 | /** |
||
26 | * Initializes filter. |
||
27 | * |
||
28 | * @param string $filterString Name filter string |
||
29 | */ |
||
30 | 3 | public function __construct($filterString) |
|
34 | |||
35 | /** |
||
36 | * Checks if Feature matches specified filter. |
||
37 | * |
||
38 | * @param FeatureNode $feature Feature instance |
||
39 | * |
||
40 | * @return Boolean |
||
41 | */ |
||
42 | 2 | public function isFeatureMatch(FeatureNode $feature) |
|
50 | |||
51 | /** |
||
52 | * Checks if scenario or outline matches specified filter. |
||
53 | * |
||
54 | * @param ScenarioInterface $scenario Scenario or Outline node instance |
||
55 | * |
||
56 | * @return Boolean |
||
57 | */ |
||
58 | 2 | public function isScenarioMatch(ScenarioInterface $scenario) |
|
68 | } |
||
69 |