1 | <?php |
||
10 | class BaseGherkinToDusk |
||
11 | { |
||
12 | |||
13 | protected $features_folder = '/tests/features/'; |
||
14 | |||
15 | protected $source_path = null; |
||
16 | |||
17 | protected $context = "domain"; |
||
18 | |||
19 | protected $path_to_feature = null; |
||
20 | |||
21 | |||
22 | |||
23 | /** |
||
24 | * Conventions |
||
25 | * file should be in tests/features for now |
||
26 | * @var null |
||
27 | */ |
||
28 | protected $file_name = null; |
||
29 | |||
30 | protected $file_name_and_path = null; |
||
31 | |||
32 | protected $destination_folder_root = null; |
||
33 | |||
34 | /** |
||
35 | * @var Filesystem |
||
36 | */ |
||
37 | protected $filesystem; |
||
38 | |||
39 | /** |
||
40 | * @var Parser |
||
41 | */ |
||
42 | protected $parser; |
||
43 | |||
44 | |||
45 | /** |
||
46 | * @var Application |
||
47 | */ |
||
48 | protected $app; |
||
49 | |||
50 | 48 | public function __construct(Application $app) |
|
58 | |||
59 | |||
60 | public function getFileName() |
||
64 | |||
65 | public function setFileName($file_name) |
||
70 | |||
71 | /** |
||
72 | * @return Filesystem |
||
73 | */ |
||
74 | 27 | public function getFilesystem() |
|
78 | |||
79 | /** |
||
80 | * @param null $filesystem |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function setFilesystem($filesystem = null) |
||
92 | |||
93 | /** |
||
94 | * @return null |
||
95 | */ |
||
96 | public function getFileNameAndPath() |
||
103 | |||
104 | /** |
||
105 | * @param null $file_name_and_path |
||
106 | * @return $this |
||
107 | */ |
||
108 | public function setFileNameAndPath($file_name_and_path = null) |
||
119 | |||
120 | |||
121 | |||
122 | /** |
||
123 | * @return null |
||
124 | */ |
||
125 | 39 | public function getSourcePath() |
|
132 | |||
133 | /** |
||
134 | * @param null $source_path |
||
135 | */ |
||
136 | 39 | public function setSourcePath($source_path = null) |
|
144 | |||
145 | /** |
||
146 | * @return null |
||
147 | */ |
||
148 | 39 | public function getDestinationFolderRoot() |
|
155 | |||
156 | /** |
||
157 | * @param null $destination_folder_root |
||
158 | */ |
||
159 | 39 | public function setDestinationFolderRoot($destination_folder_root = null) |
|
167 | |||
168 | /** |
||
169 | * @return string |
||
170 | */ |
||
171 | public function getContext() |
||
175 | |||
176 | /** |
||
177 | * @param string $context |
||
178 | * @return $this |
||
179 | */ |
||
180 | 39 | public function setContext($context) |
|
185 | |||
186 | /** |
||
187 | * @return null |
||
188 | */ |
||
189 | 27 | public function getPathToFeature() |
|
193 | |||
194 | /** |
||
195 | * @param null $path_to_feature |
||
196 | * @return $this |
||
197 | */ |
||
198 | 27 | public function setPathToFeature($path_to_feature) |
|
203 | |||
204 | 39 | private function getContextFolder() |
|
216 | } |
||
217 |