1 | <?php |
||
12 | class FeatureContext extends MinkContext implements Context, SnippetAcceptingContext |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * Initializes context. |
||
16 | * |
||
17 | * Every scenario gets its own context instance. |
||
18 | * You can also pass arbitrary arguments to the |
||
19 | * context constructor through behat.yml. |
||
20 | */ |
||
21 | public function __construct($session = null) |
||
24 | |||
25 | /** |
||
26 | * @Given /^I log out$/ |
||
27 | */ |
||
28 | public function iLogOut() |
||
32 | |||
33 | /** |
||
34 | * @Given /^I wait for ajax response$/ |
||
35 | */ |
||
36 | public function iWaitForAjaxResponse() |
||
40 | |||
41 | /** |
||
42 | * @Given /^I wait "([^"]*)" milliseconds for response$/ |
||
43 | */ |
||
44 | public function iWaitMillisecondsForResponse($delay) |
||
48 | |||
49 | /** |
||
50 | * @Given /^I set browser window size to "([^"]*)" x "([^"]*)"$/ |
||
51 | */ |
||
52 | public function iSetBrowserWindowSizeToX($width, $height) |
||
56 | |||
57 | /** |
||
58 | * Click on the element with the provided xpath query |
||
59 | * |
||
60 | * @When I click on the element :arg1 |
||
61 | */ |
||
62 | public function iClickOnTheElement($selector) |
||
75 | |||
76 | /** |
||
77 | * @AfterStep |
||
78 | */ |
||
79 | public function takeScreenShotAfterFailedStep(AfterStepScope $scope) |
||
97 | |||
98 | public function toggleStyle($selector) |
||
119 | |||
120 | /** |
||
121 | * @When I fill in :arg1 in the hidden field :arg2 with selector :arg3 |
||
122 | */ |
||
123 | public function iFillInTheHiddenField($value, $field, $id) |
||
129 | |||
130 | /** |
||
131 | * @Then I hover over :arg1 |
||
132 | */ |
||
133 | public function iHoverOver($id) |
||
143 | |||
144 | |||
145 | } |
||
146 | |||
147 |
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.