@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @since 2.1 |
40 | 40 | * |
41 | - * @param Title $title |
|
41 | + * @param Title|null $title |
|
42 | 42 | * |
43 | 43 | * @return PageEditor |
44 | 44 | */ |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @param Title $title |
42 | 42 | * |
43 | - * @return text |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public function getContentAsText( Title $title ) { |
46 | 46 |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use ImportReporter; |
7 | 7 | use WikiImporter; |
8 | 8 | use RequestContext; |
9 | - |
|
10 | 9 | use RuntimeException; |
11 | 10 | |
12 | 11 | /** |
@@ -3,15 +3,11 @@ |
||
3 | 3 | namespace SMW\Tests\Utils; |
4 | 4 | |
5 | 5 | use SMW\MediaWiki\Jobs\UpdateJob; |
6 | - |
|
7 | -use SMW\Store; |
|
8 | 6 | use SMW\ContentParser; |
9 | 7 | use SMW\ApplicationFactory; |
10 | 8 | use SMW\DIWikiPage; |
11 | - |
|
12 | 9 | use Title; |
13 | 10 | use WikiPage; |
14 | - |
|
15 | 11 | use RuntimeException; |
16 | 12 | |
17 | 13 | /** |
@@ -26,6 +26,9 @@ discard block |
||
26 | 26 | protected $result = null; |
27 | 27 | protected $verbose = false; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $file |
|
31 | + */ |
|
29 | 32 | public function __construct( $file = null ) { |
30 | 33 | $this->file = $file; |
31 | 34 | } |
@@ -115,7 +118,7 @@ discard block |
||
115 | 118 | } |
116 | 119 | |
117 | 120 | /** |
118 | - * @return integer |
|
121 | + * @return double |
|
119 | 122 | */ |
120 | 123 | public function getElapsedImportTimeInSeconds() { |
121 | 124 | return round( $this->importTime, 7 ); |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use ImportReporter; |
7 | 7 | use WikiImporter; |
8 | 8 | use RequestContext; |
9 | - |
|
10 | 9 | use RuntimeException; |
11 | 10 | |
12 | 11 | /** |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use SMW\DIWikiPage; |
6 | 6 | use SMW\SemanticData; |
7 | - |
|
8 | 7 | use Title; |
9 | - |
|
10 | 8 | use RuntimeException; |
11 | 9 | |
12 | 10 | /** |
@@ -156,7 +156,6 @@ |
||
156 | 156 | /** |
157 | 157 | * @since 2.1 |
158 | 158 | * |
159 | - * @param string $file|null |
|
160 | 159 | * |
161 | 160 | * @return JsonFileReader |
162 | 161 | */ |
@@ -22,7 +22,6 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * @since 2.0 |
24 | 24 | * |
25 | - * @param mixed $expected |
|
26 | 25 | * @param ExpData $exportData |
27 | 26 | */ |
28 | 27 | public function assertThatExportDataContainsProperty( $expectedProperties, ExpData $exportData ) { |
@@ -57,7 +56,6 @@ discard block |
||
57 | 56 | /** |
58 | 57 | * @since 2.0 |
59 | 58 | * |
60 | - * @param mixed $expected |
|
61 | 59 | * @param ExpResource $selectedElement |
62 | 60 | * @param ExpData $exportData |
63 | 61 | */ |
@@ -2,12 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Tests\Utils\Validators; |
4 | 4 | |
5 | -use SMW\DIWikiPage; |
|
6 | - |
|
7 | -use SMWDataValue as DataValue; |
|
8 | -use SMWDataItem as DataItem; |
|
9 | -use SMWQueryResult as QueryResult; |
|
10 | - |
|
11 | 5 | use SMWExpData as ExpData; |
12 | 6 | use SMWExpResource as ExpResource; |
13 | 7 |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * @since 2.1 |
117 | 117 | * |
118 | - * @param array $expected |
|
118 | + * @param DIProperty[] $expected |
|
119 | 119 | * @param array $properties |
120 | 120 | */ |
121 | 121 | public function assertHasProperties( array $expected, array $properties ) { |
@@ -347,6 +347,10 @@ discard block |
||
347 | 347 | ); |
348 | 348 | } |
349 | 349 | |
350 | + /** |
|
351 | + * @param DataValue $dataValue |
|
352 | + * @param string $defaultFormatter |
|
353 | + */ |
|
350 | 354 | private function assertContainsPropertyValues( &$expected, $dataValue, $defaultFormatter, $formatterParameters = array() ) { |
351 | 355 | |
352 | 356 | if ( !isset( $expected['propertyValues'] ) ) { |
@@ -5,10 +5,7 @@ |
||
5 | 5 | use SMW\DataValueFactory; |
6 | 6 | use SMW\SemanticData; |
7 | 7 | use SMW\DIProperty; |
8 | - |
|
9 | 8 | use SMWDataItem as DataItem; |
10 | -use SMWDataValue as DataValue; |
|
11 | - |
|
12 | 9 | use RuntimeException; |
13 | 10 | |
14 | 11 | /** |
@@ -21,11 +21,15 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @since 2.1 |
24 | + * @param string[] $titles |
|
24 | 25 | */ |
25 | 26 | public function assertThatTitleIsKnown( $titles ) { |
26 | 27 | $this->assertTitleExists( true, $titles ); |
27 | 28 | } |
28 | 29 | |
30 | + /** |
|
31 | + * @param boolean $isExpected |
|
32 | + */ |
|
29 | 33 | private function assertTitleExists( $isExpected, $titles ) { |
30 | 34 | |
31 | 35 | if ( !is_array( $titles ) ) { |