@@ -210,6 +210,9 @@ |
||
210 | 210 | return $queryResult; |
211 | 211 | } |
212 | 212 | |
213 | + /** |
|
214 | + * @param QueryResult $queryResult |
|
215 | + */ |
|
213 | 216 | private function benchmarkQueryResultSerialization( $queryResult ) { |
214 | 217 | |
215 | 218 | if ( !$queryResult instanceof QueryResult || $queryResult->getCount() == 0 ) { |
@@ -86,6 +86,9 @@ discard block |
||
86 | 86 | parent::tearDown(); |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @return string |
|
91 | + */ |
|
89 | 92 | abstract protected function getTestCaseLocation(); |
90 | 93 | |
91 | 94 | /** |
@@ -201,6 +204,9 @@ discard block |
||
201 | 204 | } |
202 | 205 | } |
203 | 206 | |
207 | + /** |
|
208 | + * @param string $key |
|
209 | + */ |
|
204 | 210 | protected function changeGlobalSettingTo( $key, $value ) { |
205 | 211 | |
206 | 212 | if ( $key === '' || $value === '' ) { |
@@ -85,6 +85,9 @@ |
||
85 | 85 | ); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param UriValue $instance |
|
90 | + */ |
|
88 | 91 | private function assertOutputFormatting( $instance, $linker, $expected ) { |
89 | 92 | |
90 | 93 | $this->assertEquals( |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Returns the name of the class to be tested |
27 | 27 | * |
28 | - * @return string|boolean |
|
28 | + * @return boolean |
|
29 | 29 | */ |
30 | 30 | public function getClass() { |
31 | 31 | return false; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Returns the name of the class to be tested |
37 | 37 | * |
38 | - * @return string|false |
|
38 | + * @return string |
|
39 | 39 | */ |
40 | 40 | public function getClass() { |
41 | 41 | return '\SMW\AggregatablePrinter'; |
@@ -280,6 +280,9 @@ discard block |
||
280 | 280 | return $this->buildDataProvider( 'wgExtensionMessagesFiles', $modules, '' ); |
281 | 281 | } |
282 | 282 | |
283 | + /** |
|
284 | + * @param string $target |
|
285 | + */ |
|
283 | 286 | private function assertArrayEntryExists( $target, $entry, $config, $type = 'class' ) { |
284 | 287 | |
285 | 288 | $config = $config + $this->defaultConfig; |
@@ -305,6 +308,9 @@ discard block |
||
305 | 308 | } |
306 | 309 | |
307 | 310 | /** |
311 | + * @param string $id |
|
312 | + * @param string[] $definitions |
|
313 | + * @param string $default |
|
308 | 314 | * @return array |
309 | 315 | */ |
310 | 316 | private function buildDataProvider( $id, $definitions, $default ) { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Returns the name of the class to be tested |
45 | 45 | * |
46 | - * @return string|false |
|
46 | + * @return boolean |
|
47 | 47 | */ |
48 | 48 | public function getClass() { |
49 | 49 | return false; |
@@ -42,6 +42,9 @@ |
||
42 | 42 | * @param Store |
43 | 43 | * @param SemanticDataValidator |
44 | 44 | * @param StringValidator |
45 | + * @param \SMW\Store $store |
|
46 | + * @param \SMW\Tests\Utils\Validators\SemanticDataValidator $semanticDataValidator |
|
47 | + * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator |
|
45 | 48 | */ |
46 | 49 | public function __construct( $store, $semanticDataValidator, $stringValidator ) { |
47 | 50 | $this->store = $store; |
@@ -250,6 +250,7 @@ |
||
250 | 250 | /** |
251 | 251 | * @since 2.2 |
252 | 252 | * |
253 | + * @param string $id |
|
253 | 254 | * @return array |
254 | 255 | */ |
255 | 256 | public function getExpectedFormatOuputFor( $id ) { |