1 | <?php |
||
22 | class CucumberKeywords extends ArrayKeywords |
||
23 | { |
||
24 | /** |
||
25 | * Initializes holder with yaml string OR file. |
||
26 | * |
||
27 | * @param string $yaml Yaml string |
||
28 | */ |
||
29 | 5 | public function __construct($yaml) |
|
33 | |||
34 | /** |
||
35 | * Returns Feature keywords (splitted by "|"). |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getGivenKeywords() |
||
43 | |||
44 | /** |
||
45 | * Returns When keywords (splitted by "|"). |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getWhenKeywords() |
||
53 | |||
54 | /** |
||
55 | * Returns Then keywords (splitted by "|"). |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getThenKeywords() |
||
63 | |||
64 | /** |
||
65 | * Returns And keywords (splitted by "|"). |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getAndKeywords() |
||
73 | |||
74 | /** |
||
75 | * Returns But keywords (splitted by "|"). |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getButKeywords() |
||
83 | |||
84 | /** |
||
85 | * Trim *| from the begining of the list. |
||
86 | * |
||
87 | * @param string $keywordsString Keywords string |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | private function prepareStepString($keywordsString) |
||
99 | } |
||
100 |