1 | <?php |
||
27 | class ElementIndexSettingsTest extends BaseTest |
||
28 | { |
||
29 | /** |
||
30 | * @var ElementIndexSettings |
||
31 | */ |
||
32 | private $schematicElementIndexSettingsService; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function setUp() |
||
42 | |||
43 | /** |
||
44 | * @return ElementsService|Mock |
||
45 | * |
||
46 | * @param array $getAllElementTypesResponse |
||
47 | * |
||
48 | * @return Mock |
||
49 | */ |
||
50 | protected function getMockElementsService($getAllElementTypesResponse = []) |
||
57 | |||
58 | /** |
||
59 | * @return ElementIndexesService|Mock |
||
60 | * |
||
61 | * @param array $getSettingsResponse |
||
|
|||
62 | * |
||
63 | * @return Mock |
||
64 | */ |
||
65 | protected function getMockElementIndexesService() |
||
74 | |||
75 | /** |
||
76 | * Test default import functionality. |
||
77 | * |
||
78 | * @covers ::import |
||
79 | */ |
||
80 | public function testImport() |
||
91 | |||
92 | /** |
||
93 | * Test export functionality. |
||
94 | * |
||
95 | * @covers ::export |
||
96 | */ |
||
97 | public function testExport() |
||
110 | |||
111 | /** |
||
112 | * Returns elements data. |
||
113 | * |
||
114 | * @return array |
||
115 | */ |
||
116 | public function getElementsData() |
||
123 | |||
124 | /** |
||
125 | * Returns element index settings saved data. |
||
126 | * |
||
127 | * @return array |
||
128 | */ |
||
129 | public function getElementIndexSettingsSavedData() |
||
161 | |||
162 | /** |
||
163 | * Returns element index settings exported data. |
||
164 | * |
||
165 | * @return array |
||
166 | */ |
||
167 | public function getElementIndexSettingsExportedData() |
||
199 | |||
200 | /** |
||
201 | * @return Mock|Sources |
||
202 | */ |
||
203 | private function setMockSources() |
||
217 | |||
218 | /** |
||
219 | * @param string $fieldType |
||
220 | * @param string $source |
||
221 | * @param string $fromIndex |
||
222 | * @param string $toIndex |
||
223 | * |
||
224 | * @return string |
||
225 | */ |
||
226 | public function getMockSourceCallback($fieldType, $source, $fromIndex, $toIndex) |
||
240 | } |
||
241 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.