1 | <?php |
||
10 | class ModelFeatureContext implements \Behat\Behat\Context\Context |
||
|
|||
11 | { |
||
12 | /** @var DomainRepository */ |
||
13 | private $domainRepository; |
||
14 | |||
15 | /** |
||
16 | * ModelFeatureContext constructor. |
||
17 | * |
||
18 | * @param DomainRepository $domainRepository |
||
19 | */ |
||
20 | public function __construct(DomainRepository $domainRepository) |
||
24 | |||
25 | /** |
||
26 | * @When I create model with :arg1 id for :arg2 domain |
||
27 | */ |
||
28 | public function iCreateModelWithIdForDomain($arg1, $arg2) |
||
38 | |||
39 | /** |
||
40 | * @Then I should see new model in :arg1 domain |
||
41 | */ |
||
42 | public function iShouldSeeAddedToDomain($arg1) |
||
54 | } |
||
55 |
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.