1 | <?php |
||
10 | class SimpleFeatureContext implements Context, SnippetAcceptingContext { |
||
|
|||
11 | |||
12 | /** |
||
13 | * @Given a value :value |
||
14 | */ |
||
15 | public function aValue($value) { |
||
18 | |||
19 | /** |
||
20 | * @Given values :value1 and :value2 |
||
21 | */ |
||
22 | public function valuesAnd($value1, $value2) { |
||
25 | |||
26 | /** |
||
27 | * @Given values :value1 and :value2 and :value3 |
||
28 | */ |
||
29 | public function valuesAndAnd($value1, $value2, $value3) { |
||
32 | |||
33 | /** |
||
34 | * @Then :a should equal :b |
||
35 | */ |
||
36 | public function shouldEqual($a, $b) { |
||
41 | |||
42 | /** |
||
43 | * @Then the database should contain: |
||
44 | */ |
||
45 | public function theDatabaseShouldContain(PyStringNode $string) { |
||
59 | |||
60 | } |
||
61 |
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.