@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param array|string $classes Allowed classes or interfaces. |
100 | 100 | * @static |
101 | 101 | * @access public |
102 | - * @return array|object|null |
|
102 | + * @return SimpleScorer |
|
103 | 103 | * @see prefer() |
104 | 104 | */ |
105 | 105 | function &preferred($classes) { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | /** |
170 | 170 | * Accessor for default proxy host. |
171 | - * @return string Proxy URL. |
|
171 | + * @return boolean Proxy URL. |
|
172 | 172 | * @access public |
173 | 173 | */ |
174 | 174 | function getDefaultProxy() { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | /** |
180 | 180 | * Accessor for default proxy username. |
181 | - * @return string Proxy username for authentication. |
|
181 | + * @return boolean Proxy username for authentication. |
|
182 | 182 | * @access public |
183 | 183 | */ |
184 | 184 | function getDefaultProxyUsername() { |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | /** |
190 | 190 | * Accessor for default proxy password. |
191 | - * @return string Proxy password for authentication. |
|
191 | + * @return boolean Proxy password for authentication. |
|
192 | 192 | * @access public |
193 | 193 | */ |
194 | 194 | function getDefaultProxyPassword() { |
@@ -308,6 +308,7 @@ discard block |
||
308 | 308 | |
309 | 309 | /** |
310 | 310 | * Accessor for the Singleton resource. |
311 | + * @param string $resource |
|
311 | 312 | * @return object Global resource. |
312 | 313 | * @access public |
313 | 314 | * @static |
@@ -331,7 +332,7 @@ discard block |
||
331 | 332 | |
332 | 333 | /** |
333 | 334 | * Stashes the list of target prefixes. |
334 | - * @param array $prefixes List of method prefixes |
|
335 | + * @param string[] $prefixes List of method prefixes |
|
335 | 336 | * to search for. |
336 | 337 | */ |
337 | 338 | function SimpleStackTrace($prefixes) { |
@@ -112,6 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Sets an attribute. |
114 | 114 | * @param string $label Attribute name. |
115 | + * @param string $value |
|
115 | 116 | * @return string $value New attribute value. |
116 | 117 | * @access protected |
117 | 118 | */ |
@@ -1300,6 +1301,7 @@ discard block |
||
1300 | 1301 | /** |
1301 | 1302 | * Tests to see if a value is allowed. |
1302 | 1303 | * @param string Attempted value. |
1304 | + * @param string $value |
|
1303 | 1305 | * @return boolean True if a valid value. |
1304 | 1306 | * @access private |
1305 | 1307 | */ |
@@ -6,6 +6,10 @@ |
||
6 | 6 | Mock::generate('TestSuite'); |
7 | 7 | |
8 | 8 | class PathEqualExpectation extends EqualExpectation { |
9 | + |
|
10 | + /** |
|
11 | + * @param string $value |
|
12 | + */ |
|
9 | 13 | function PathEqualExpectation($value, $message = '%s') { |
10 | 14 | $this->EqualExpectation(str_replace("\\", '/', $value), $message); |
11 | 15 | } |
@@ -40,6 +40,10 @@ |
||
40 | 40 | $this->_content_so_far = ''; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param SimplePostEncoding $encoding |
|
45 | + * @param string $content |
|
46 | + */ |
|
43 | 47 | function assertWritten($encoding, $content, $message = '%s') { |
44 | 48 | $this->clear(); |
45 | 49 | $encoding->writeTo($this); |
@@ -6,8 +6,20 @@ |
||
6 | 6 | } |
7 | 7 | |
8 | 8 | interface DummyInterface { |
9 | + |
|
10 | + /** |
|
11 | + * @return void |
|
12 | + */ |
|
9 | 13 | function aMethod(); |
14 | + |
|
15 | + /** |
|
16 | + * @return void |
|
17 | + */ |
|
10 | 18 | function anotherMethod($a); |
19 | + |
|
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
11 | 23 | function &referenceMethod(&$a); |
12 | 24 | } |
13 | 25 |
@@ -54,6 +54,9 @@ |
||
54 | 54 | 'function &aMethod()'); |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $b |
|
59 | + */ |
|
57 | 60 | function assertEqualIgnoringCase($a, $b) { |
58 | 61 | return $this->assertEqual(strtolower($a), strtolower($b)); |
59 | 62 | } |
@@ -20,6 +20,10 @@ |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | interface AnyOldArgumentInterface { |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
23 | 27 | function aMethod(AnyOldInterface $argument); |
24 | 28 | } |
25 | 29 |
@@ -266,6 +266,9 @@ discard block |
||
266 | 266 | $this->assertPreserved('http://www.here.com/?a=A__b=B'); |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @param string $raw |
|
271 | + */ |
|
269 | 272 | function assertUrl($raw, $parts, $params = false, $coords = false) { |
270 | 273 | if (! is_array($params)) { |
271 | 274 | $params = array(); |
@@ -291,6 +294,9 @@ discard block |
||
291 | 294 | $this->assertEqual($url->getPath(), '/article/categoryedit/insert//'); |
292 | 295 | } |
293 | 296 | |
297 | + /** |
|
298 | + * @param string $string |
|
299 | + */ |
|
294 | 300 | function assertPreserved($string) { |
295 | 301 | $url = new SimpleUrl($string); |
296 | 302 | $this->assertEqual($url->asString(), $string); |
@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | return $response; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $header_lines |
|
73 | + */ |
|
71 | 74 | function &_createCookieSite($header_lines) { |
72 | 75 | $headers = &new SimpleHttpHeaders($header_lines); |
73 | 76 | |
@@ -200,6 +203,10 @@ discard block |
||
200 | 203 | |
201 | 204 | class TestOfHttpRedirects extends UnitTestCase { |
202 | 205 | |
206 | + /** |
|
207 | + * @param string $content |
|
208 | + * @param string|false $redirect |
|
209 | + */ |
|
203 | 210 | function &createRedirect($content, $redirect) { |
204 | 211 | $headers = &new MockSimpleHttpHeaders(); |
205 | 212 | $headers->setReturnValue('isRedirect', (boolean)$redirect); |