@@ -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 ) { |
@@ -37,6 +37,8 @@ discard block |
||
37 | 37 | * @since 2.2 |
38 | 38 | * |
39 | 39 | * @param Store $store |
40 | + * @param \SMW\Tests\Utils\Validators\QueryResultValidator $queryResultValidator |
|
41 | + * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator |
|
40 | 42 | */ |
41 | 43 | public function __construct( Store $store, $queryResultValidator, $stringValidator ) { |
42 | 44 | $this->store = $store; |
@@ -219,6 +221,9 @@ discard block |
||
219 | 221 | ); |
220 | 222 | } |
221 | 223 | |
224 | + /** |
|
225 | + * @param string $about |
|
226 | + */ |
|
222 | 227 | private function printDescriptionToOutput( $about, $description ) { |
223 | 228 | |
224 | 229 | if ( !$this->debug ) { |
@@ -229,6 +234,9 @@ discard block |
||
229 | 234 | print_r( $description ); |
230 | 235 | } |
231 | 236 | |
237 | + /** |
|
238 | + * @param \SMWQueryResult $queryResult |
|
239 | + */ |
|
232 | 240 | private function printQueryResultToOutput( $queryResult ) { |
233 | 241 | |
234 | 242 | if ( !$this->debug ) { |
@@ -133,6 +133,9 @@ |
||
133 | 133 | ); |
134 | 134 | } |
135 | 135 | |
136 | + /** |
|
137 | + * @param string $subject |
|
138 | + */ |
|
136 | 139 | private function newBrowseBySubject( $subject, $asRawMode = false ) { |
137 | 140 | |
138 | 141 | $instance = new BrowseBySubject( |
@@ -116,6 +116,10 @@ |
||
116 | 116 | ->run(); |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $name |
|
121 | + * @param string $condition |
|
122 | + */ |
|
119 | 123 | protected function createConceptPage( $name, $condition ) { |
120 | 124 | |
121 | 125 | $this->pageCreator |
@@ -166,6 +166,9 @@ discard block |
||
166 | 166 | } |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param \SMW\SemanticData $semanticData |
|
171 | + */ |
|
169 | 172 | protected function assertThatSemanticDataValuesForPropertyAreSet( $expected, $semanticData ) { |
170 | 173 | |
171 | 174 | $runValueAssert = false; |
@@ -186,6 +189,10 @@ discard block |
||
186 | 189 | // $this->assertTrue( $runValueAssert, __METHOD__ ); |
187 | 190 | } |
188 | 191 | |
192 | + /** |
|
193 | + * @param string $source |
|
194 | + * @param string $target |
|
195 | + */ |
|
189 | 196 | protected function createPageWithRedirectFor( $source, $target ) { |
190 | 197 | |
191 | 198 | $this->pageCreator |
@@ -195,6 +202,9 @@ discard block |
||
195 | 202 | return $this->pageCreator->getPage(); |
196 | 203 | } |
197 | 204 | |
205 | + /** |
|
206 | + * @param string $target |
|
207 | + */ |
|
198 | 208 | protected function movePageToTargetRedirect( $page, $target ) { |
199 | 209 | |
200 | 210 | $moveToTargetTitle = Title::newFromText( $target ); |
@@ -216,6 +216,9 @@ |
||
216 | 216 | |
217 | 217 | } |
218 | 218 | |
219 | + /** |
|
220 | + * @param \SMW\SemanticData $semanticData |
|
221 | + */ |
|
219 | 222 | protected function assertBatchesOfDateValues( $assertionBatches, $semanticData ) { |
220 | 223 | foreach ( $assertionBatches as $singleAssertionBatch ) { |
221 | 224 | $this->assertThatDateValuesAreSet( $singleAssertionBatch, $semanticData ); |
@@ -163,6 +163,9 @@ |
||
163 | 163 | $this->assertPropertyCount( $expected['poAfter'], $expected['storeAfter'], $parserData ); |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @param ParserData $parserData |
|
168 | + */ |
|
166 | 169 | protected function assertPropertyCount( $poExpected, $storeExpected, $parserData ) { |
167 | 170 | $this->semanticDataValidator->assertThatSemanticDataHasPropertyCountOf( |
168 | 171 | $poExpected['count'], |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use SMW\Tests\Utils\PageCreator; |
13 | 13 | use Title; |
14 | 14 | use UnexpectedValueException; |
15 | -use User; |
|
16 | 15 | use WikiPage; |
17 | 16 | |
18 | 17 | /** |