| 1 | <?php |
||
| 21 | class NarrativeFilter extends SimpleFilter |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $regex; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initializes filter. |
||
| 30 | * |
||
| 31 | * @param string $regex |
||
| 32 | */ |
||
| 33 | 1 | public function __construct($regex) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Checks if Feature matches specified filter. |
||
| 40 | * |
||
| 41 | * @param FeatureNode $feature Feature instance |
||
| 42 | * |
||
| 43 | * @return Boolean |
||
| 44 | */ |
||
| 45 | 1 | public function isFeatureMatch(FeatureNode $feature) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Checks if scenario or outline matches specified filter. |
||
| 52 | * |
||
| 53 | * @param ScenarioInterface $scenario Scenario or Outline node instance |
||
| 54 | * |
||
| 55 | * @return Boolean |
||
| 56 | */ |
||
| 57 | public function isScenarioMatch(ScenarioInterface $scenario) |
||
| 61 | } |
||
| 62 |