1 | <?php |
||
15 | class JsonTestCaseFileHandler { |
||
16 | |||
17 | /** |
||
18 | * @var FileReader |
||
19 | */ |
||
20 | private $fileReader; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $reasonToSkip = ''; |
||
26 | |||
27 | /** |
||
28 | * @since 2.2 |
||
29 | * |
||
30 | * @param FileReader $fileReader |
||
31 | */ |
||
32 | public function __construct( FileReader $fileReader ) { |
||
35 | |||
36 | /** |
||
37 | * @since 2.2 |
||
38 | * |
||
39 | * @return boolean |
||
40 | */ |
||
41 | public function isIncomplete() { |
||
52 | |||
53 | /** |
||
54 | * @since 2.2 |
||
55 | * |
||
56 | * @return boolean |
||
57 | */ |
||
58 | public function getDebugMode() { |
||
64 | |||
65 | /** |
||
66 | * @since 2.4 |
||
67 | * |
||
68 | * @param array $case |
||
69 | * @param string $identifier |
||
70 | * |
||
71 | * @return boolean |
||
72 | */ |
||
73 | public function requiredToSkipFor( array $case, $identifier ) { |
||
84 | |||
85 | /** |
||
86 | * @since 2.2 |
||
87 | * |
||
88 | * @return boolean |
||
89 | */ |
||
90 | public function requiredToSkipForConnector( $connectorId ) { |
||
103 | |||
104 | /** |
||
105 | * @since 2.2 |
||
106 | * |
||
107 | * @return boolean |
||
108 | */ |
||
109 | public function requiredToSkipForJsonVersion( $version ) { |
||
119 | |||
120 | /** |
||
121 | * @since 2.2 |
||
122 | * |
||
123 | * @return boolean |
||
124 | */ |
||
125 | public function requiredToSkipForMwVersion( $mwVersion ) { |
||
146 | |||
147 | /** |
||
148 | * @since 2.2 |
||
149 | * |
||
150 | * @return string |
||
151 | */ |
||
152 | public function getReasonForSkip() { |
||
155 | |||
156 | /** |
||
157 | * @since 2.2 |
||
158 | * |
||
159 | * @return array|integer|string|boolean |
||
160 | * @throws RuntimeException |
||
161 | */ |
||
162 | public function getSettingsFor( $key ) { |
||
198 | |||
199 | /** |
||
200 | * @since 2.2 |
||
201 | * |
||
202 | * @return array |
||
203 | */ |
||
204 | public function getListOfProperties() { |
||
207 | |||
208 | /** |
||
209 | * @since 2.2 |
||
210 | * |
||
211 | * @return array |
||
212 | */ |
||
213 | public function getListOfSubjects() { |
||
216 | |||
217 | /** |
||
218 | * @since 2.4 |
||
219 | * |
||
220 | * @param string $key |
||
221 | * |
||
222 | * @return array |
||
223 | */ |
||
224 | public function getContentsFor( $key ) { |
||
234 | |||
235 | /** |
||
236 | * @since 2.2 |
||
237 | * |
||
238 | * @param string $key |
||
239 | * |
||
240 | * @return array |
||
241 | */ |
||
242 | public function findTestCasesFor( $key ) { |
||
245 | |||
246 | private function getFileContentsFor( $index ) { |
||
256 | |||
257 | } |
||
258 |
This checks looks for assignemnts to variables using the
list(...)
function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$a
and$c
are used. There was no need to assign$b
.Instead, the list call could have been.