1 | <?php |
||
10 | class DomainFeatureContext implements \Behat\Behat\Context\Context |
||
|
|||
11 | { |
||
12 | /** @var UseCase */ |
||
13 | private $useCase; |
||
14 | |||
15 | /** @var DomainRepository */ |
||
16 | private $domainRepository; |
||
17 | |||
18 | /** |
||
19 | * DomainFeatureContext constructor. |
||
20 | * |
||
21 | * @param UseCase $useCase |
||
22 | * @param DomainRepository $domainRepository |
||
23 | */ |
||
24 | public function __construct(UseCase $useCase, DomainRepository $domainRepository) |
||
29 | |||
30 | /** |
||
31 | * @When create domain with :arg1 id |
||
32 | */ |
||
33 | public function createDomainWithId($arg1) |
||
39 | |||
40 | /** |
||
41 | * @Then should see new created domain for :arg1 id |
||
42 | */ |
||
43 | public function shouldSeeNewCreatedDomain($arg1) |
||
49 | |||
50 | /** |
||
51 | * @Given I have domain with :arg1 id |
||
52 | */ |
||
53 | public function iHaveDomainWithId($arg1) |
||
61 | } |
||
62 |
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.