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 | 18 | 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 | 6 | public function getFilesystem() |
|
65 | { |
||
66 | 6 | return $this->filesystem; |
|
67 | } |
||
68 | |||
69 | /** |
||
70 | * @param null $filesystem |
||
71 | * @return $this |
||
72 | */ |
||
73 | public function setFilesystem($filesystem = null) |
||
78 | |||
79 | /** |
||
80 | * @return null |
||
81 | */ |
||
82 | public function getFileNameAndPath() |
||
89 | |||
90 | /** |
||
91 | * @param null $file_name_and_path |
||
92 | */ |
||
93 | public function setFileNameAndPath($file_name_and_path = null) |
||
104 | |||
105 | |||
106 | |||
107 | /** |
||
108 | * @return null |
||
109 | */ |
||
110 | 18 | public function getSourcePath() |
|
117 | |||
118 | /** |
||
119 | * @param null $source_path |
||
120 | */ |
||
121 | 18 | public function setSourcePath($source_path = null) |
|
129 | |||
130 | /** |
||
131 | * @return null |
||
132 | */ |
||
133 | public function getDestinationFolderRoot() |
||
137 | |||
138 | /** |
||
139 | * @param null $destination_folder_root |
||
140 | */ |
||
141 | public function setDestinationFolderRoot($destination_folder_root = null) |
||
149 | |||
150 | /** |
||
151 | * @return string |
||
152 | */ |
||
153 | public function getContext() |
||
157 | |||
158 | /** |
||
159 | * @param string $context |
||
160 | * @return $this |
||
161 | */ |
||
162 | public function setContext($context) |
||
167 | |||
168 | /** |
||
169 | * @return null |
||
170 | */ |
||
171 | 6 | public function getPathToFeature() |
|
175 | |||
176 | /** |
||
177 | * @param null $path_to_feature |
||
178 | * @return $this |
||
179 | */ |
||
180 | 6 | public function setPathToFeature($path_to_feature) |
|
185 | } |
||
186 |