1 | <?php |
||
8 | class SonataListContext implements Context |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * @var MinkContext |
||
12 | */ |
||
13 | private $minkContext; |
||
14 | |||
15 | /** |
||
16 | * @BeforeScenario |
||
17 | * @param BeforeScenarioScope $scope |
||
18 | */ |
||
19 | public function gatherContexts(BeforeScenarioScope $scope): void |
||
25 | |||
26 | /** |
||
27 | * @Given /^I click on "([^"]*)" action for entity with "([^"]*)" "([^"]*)"$/ |
||
28 | * @param string $actionLocator |
||
29 | * @param string $cellName |
||
30 | * @param string $cellValue |
||
31 | */ |
||
32 | public function iClickForEntityWith(string $actionLocator, string $cellName, string $cellValue): void |
||
45 | |||
46 | /** |
||
47 | * @param string $cellName |
||
48 | * @param string $cellValue |
||
49 | * @return NodeElement |
||
50 | */ |
||
51 | private function getRowByCellValue(string $cellName, string $cellValue): NodeElement |
||
69 | |||
70 | /** |
||
71 | * @param NodeElement $rowElement |
||
72 | * @param int $index |
||
73 | * @return NodeElement |
||
74 | */ |
||
75 | private function getCellInRowByIndex(NodeElement $rowElement, int $index): NodeElement |
||
90 | |||
91 | /** |
||
92 | * @param string $cellName |
||
93 | * @return int|null |
||
94 | */ |
||
95 | private function getCellIndex(string $cellName): ?int |
||
111 | } |
||
112 |
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.