1 | <?php |
||
9 | class BaseGherkinToDusk |
||
10 | { |
||
11 | |||
12 | protected $features_folder = '/tests/features/'; |
||
13 | |||
14 | protected $source_path = null; |
||
15 | |||
16 | protected $context = "domain"; |
||
17 | |||
18 | protected $path_to_feature = null; |
||
19 | |||
20 | |||
21 | |||
22 | /** |
||
23 | * Conventions |
||
24 | * file should be in tests/features for now |
||
25 | * @var null |
||
26 | */ |
||
27 | protected $file_name = null; |
||
28 | |||
29 | protected $file_name_and_path = null; |
||
30 | |||
31 | protected $destination_folder_root = null; |
||
32 | |||
33 | /** |
||
34 | * @var Filesystem |
||
35 | */ |
||
36 | protected $filesystem; |
||
37 | |||
38 | /** |
||
39 | * @var Parser |
||
40 | */ |
||
41 | protected $parser; |
||
42 | |||
43 | 33 | public function __construct(Filesystem $filesystem, Parser $parser = null) |
|
48 | |||
49 | |||
50 | public function getFileName() |
||
54 | |||
55 | public function setFileName($file_name) |
||
60 | |||
61 | /** |
||
62 | * @return Filesystem |
||
63 | */ |
||
64 | 21 | public function getFilesystem() |
|
68 | |||
69 | /** |
||
70 | * @param null $filesystem |
||
71 | * @return $this |
||
72 | */ |
||
73 | public function setFilesystem($filesystem = null) |
||
82 | |||
83 | /** |
||
84 | * @return null |
||
85 | */ |
||
86 | public function getFileNameAndPath() |
||
93 | |||
94 | /** |
||
95 | * @param null $file_name_and_path |
||
96 | */ |
||
97 | public function setFileNameAndPath($file_name_and_path = null) |
||
108 | |||
109 | |||
110 | |||
111 | /** |
||
112 | * @return null |
||
113 | */ |
||
114 | 33 | public function getSourcePath() |
|
121 | |||
122 | /** |
||
123 | * @param null $source_path |
||
124 | */ |
||
125 | 33 | public function setSourcePath($source_path = null) |
|
133 | |||
134 | /** |
||
135 | * @return null |
||
136 | */ |
||
137 | 33 | public function getDestinationFolderRoot() |
|
144 | |||
145 | /** |
||
146 | * @param null $destination_folder_root |
||
147 | */ |
||
148 | 33 | public function setDestinationFolderRoot($destination_folder_root = null) |
|
156 | |||
157 | /** |
||
158 | * @return string |
||
159 | */ |
||
160 | public function getContext() |
||
164 | |||
165 | /** |
||
166 | * @param string $context |
||
167 | * @return $this |
||
168 | */ |
||
169 | public function setContext($context) |
||
174 | |||
175 | /** |
||
176 | * @return null |
||
177 | */ |
||
178 | 21 | public function getPathToFeature() |
|
182 | |||
183 | /** |
||
184 | * @param null $path_to_feature |
||
185 | * @return $this |
||
186 | */ |
||
187 | 21 | public function setPathToFeature($path_to_feature) |
|
192 | |||
193 | 33 | private function getContextFolder() |
|
205 | } |
||
206 |