| 1 | <?php |
||
| 8 | class SimpleFeatureContext implements Context, SnippetAcceptingContext { |
||
|
|
|||
| 9 | |||
| 10 | /** |
||
| 11 | * @Given a value :value |
||
| 12 | */ |
||
| 13 | public function aValue($value) { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @Given values :value1 and :value2 |
||
| 19 | */ |
||
| 20 | public function valuesAnd($value1, $value2) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @Then :a should equal :b |
||
| 26 | */ |
||
| 27 | public function shouldEqual($a, $b) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @Then the database should contain: |
||
| 35 | */ |
||
| 36 | public function theDatabaseShouldContain(PyStringNode $string) { |
||
| 39 | |||
| 40 | } |
||
| 41 |
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.