1 | <?php |
||
10 | class ProxyFeatureContext implements Context, SnippetAcceptingContext { |
||
|
|||
11 | |||
12 | private $phpBin = ''; |
||
13 | private $process; |
||
14 | private $workingDir = ''; |
||
15 | |||
16 | |||
17 | |||
18 | /** |
||
19 | * Initializes context. |
||
20 | */ |
||
21 | public function __construct() { |
||
24 | |||
25 | |||
26 | |||
27 | /** |
||
28 | * Cleans test folders in the temporary directory. |
||
29 | * |
||
30 | * @BeforeSuite |
||
31 | * @AfterSuite |
||
32 | */ |
||
33 | public static function cleanTestFolders() { |
||
38 | |||
39 | /** |
||
40 | * Prepares test folders in the temporary directory. |
||
41 | * |
||
42 | * @BeforeScenario |
||
43 | */ |
||
44 | public function prepareTestFolders() { |
||
57 | |||
58 | |||
59 | |||
60 | /** |
||
61 | * @Given /^(?:there is )?a file named "([^"]*)" with:$/ |
||
62 | */ |
||
63 | public function aFileNamedWith($filename, PyStringNode $content) { |
||
67 | |||
68 | /** |
||
69 | * Runs behat command with provided parameters |
||
70 | * |
||
71 | * @When /^I run "behat(?: ((?:\"|[^"])*))?"$/ |
||
72 | * @When /^I run behat$/ |
||
73 | * |
||
74 | * @param string $argumentsString |
||
75 | */ |
||
76 | public function iRunBehat($argumentsString = '') { |
||
102 | |||
103 | /** |
||
104 | * @Then /^it should (pass|fail) with:$/ |
||
105 | */ |
||
106 | public function itShouldPassWith($shouldPassFail, PyStringNode $string) { |
||
125 | |||
126 | |||
127 | |||
128 | /** |
||
129 | * |
||
130 | */ |
||
131 | protected function cleanOutput($output) { |
||
134 | |||
135 | /** |
||
136 | * |
||
137 | */ |
||
138 | private function getOutput() { |
||
151 | |||
152 | /** |
||
153 | * |
||
154 | */ |
||
155 | private function getExitCode() { |
||
158 | |||
159 | /** |
||
160 | * |
||
161 | */ |
||
162 | private function createFile($filename, $content) { |
||
170 | |||
171 | /** |
||
172 | * |
||
173 | */ |
||
174 | private static function clearDirectory($path) { |
||
190 | |||
191 | } |
||
192 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.