@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Creates a copy whether in PHP5 or PHP4. |
17 | - * @param object $object Thing to copy. |
|
17 | + * @param SimpleFormTag $object Thing to copy. |
|
18 | 18 | * @return object A copy. |
19 | 19 | * @access public |
20 | 20 | * @static |
@@ -239,8 +239,6 @@ |
||
239 | 239 | /** |
240 | 240 | * Removes expired and temporary cookies as if |
241 | 241 | * the browser was closed and re-opened. |
242 | - * @param string/integer $now Time to test expiry against. |
|
243 | - * @access public |
|
244 | 242 | */ |
245 | 243 | function restartSession($date = false) { |
246 | 244 | $surviving_cookies = array(); |
@@ -125,8 +125,6 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Stash the first exception. Clicking the test |
127 | 127 | * item goes to first message. |
128 | - * @param string $message Test message, but we only wnat the first. |
|
129 | - * @access public |
|
130 | 128 | */ |
131 | 129 | function paintException($exception){ |
132 | 130 | if (! $this->_fail && ! $this->_error){ |
@@ -163,8 +161,6 @@ discard block |
||
163 | 161 | /** |
164 | 162 | * Paints nothing at the start of a test method, but stash |
165 | 163 | * the method name for later. |
166 | - * @param string $test_name Name of test that is starting. |
|
167 | - * @access public |
|
168 | 164 | */ |
169 | 165 | function paintMethodStart($method) { |
170 | 166 | $this->_pass = false; |
@@ -176,8 +172,6 @@ discard block |
||
176 | 172 | /** |
177 | 173 | * Only send one message if the test passes, after that |
178 | 174 | * suppress the message. |
179 | - * @param string $test_name Name of test that is ending. |
|
180 | - * @access public |
|
181 | 175 | */ |
182 | 176 | function paintMethodEnd($method){ |
183 | 177 | if ($this->_fail || $this->_error || ! $this->_pass){ |
@@ -191,8 +185,6 @@ discard block |
||
191 | 185 | |
192 | 186 | /** |
193 | 187 | * Stashes the test case name for the later failure message. |
194 | - * @param string $test_name Name of test or other label. |
|
195 | - * @access public |
|
196 | 188 | */ |
197 | 189 | function paintCaseStart($case){ |
198 | 190 | $this->_case = $this->escapeVal($case); |
@@ -200,8 +192,6 @@ discard block |
||
200 | 192 | |
201 | 193 | /** |
202 | 194 | * Drops the name. |
203 | - * @param string $test_name Name of test or other label. |
|
204 | - * @access public |
|
205 | 195 | */ |
206 | 196 | function paintCaseEnd($case){ |
207 | 197 | $this->_case = ""; |
@@ -273,6 +263,10 @@ discard block |
||
273 | 263 | * @subpackage Eclipse |
274 | 264 | */ |
275 | 265 | class EclipseInvoker extends SimpleInvokerDecorator{ |
266 | + |
|
267 | + /** |
|
268 | + * @param SimpleInvoker $invoker |
|
269 | + */ |
|
276 | 270 | function EclipseInvoker(&$invoker, &$listener) { |
277 | 271 | $this->_listener = &$listener; |
278 | 272 | $this->SimpleInvokerDecorator($invoker); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * form encoded packet. |
249 | 249 | * @param string $key Key to add value to. |
250 | 250 | * @param string $content Raw data. |
251 | - * @param hash $filename Original filename. |
|
251 | + * @param string $filename Original filename. |
|
252 | 252 | * @access public |
253 | 253 | */ |
254 | 254 | function attach($key, $content, $filename) { |
@@ -273,6 +273,7 @@ discard block |
||
273 | 273 | |
274 | 274 | /** |
275 | 275 | * Accessor for single value. |
276 | + * @param string $key |
|
276 | 277 | * @return string/array False if missing, string |
277 | 278 | * if present and array if |
278 | 279 | * multiple entries. |
@@ -202,6 +202,7 @@ discard block |
||
202 | 202 | |
203 | 203 | /** |
204 | 204 | * @deprecated |
205 | + * @param string $message |
|
205 | 206 | */ |
206 | 207 | function assertNoErrors($message) { |
207 | 208 | return $this->_test->assert( |
@@ -212,6 +213,7 @@ discard block |
||
212 | 213 | |
213 | 214 | /** |
214 | 215 | * @deprecated |
216 | + * @param string $message |
|
215 | 217 | */ |
216 | 218 | function assertError($expected, $message) { |
217 | 219 | if (count($this->_queue) == 0) { |
@@ -119,8 +119,6 @@ |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Summary of an Exception object. |
122 | - * @param Exception $compare Exception to describe. |
|
123 | - * @return string Text description. |
|
124 | 122 | */ |
125 | 123 | protected function describeException($exception) { |
126 | 124 | return get_class($exception) . ": " . $exception->getMessage(); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Tests the expectation. True if correct. |
38 | 38 | * @param mixed $compare Comparison value. |
39 | - * @return boolean True if correct. |
|
39 | + * @return boolean|null True if correct. |
|
40 | 40 | * @access public |
41 | 41 | * @abstract |
42 | 42 | */ |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * Will test straight equality if set to loose |
39 | 39 | * typing, or identity if not. |
40 | 40 | * @param $first First value. |
41 | - * @param $second Comparison value. |
|
41 | + * @param integer $second Comparison value. |
|
42 | 42 | * @param $message Message to display. |
43 | 43 | * @public |
44 | 44 | */ |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Passes if the value tested is not null. |
56 | - * @param $value Value to test against. |
|
56 | + * @param integer $value Value to test against. |
|
57 | 57 | * @param $message Message to display. |
58 | 58 | * @public |
59 | 59 | */ |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * In PHP5 the identity test tests for the same |
76 | 76 | * object. This is a reference test in PHP4. |
77 | - * @param $first First object handle. |
|
78 | - * @param $second Hopefully the same handle. |
|
77 | + * @param SameTestClass $first First object handle. |
|
78 | + * @param SameTestClass $second Hopefully the same handle. |
|
79 | 79 | * @param $message Message to display. |
80 | 80 | * @public |
81 | 81 | */ |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * Sends pass if the test condition resolves true, |
118 | 118 | * a fail otherwise. |
119 | - * @param $condition Condition to test true. |
|
119 | + * @param boolean $condition Condition to test true. |
|
120 | 120 | * @param $message Message to display. |
121 | 121 | * @public |
122 | 122 | */ |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * Sends pass if the test condition resolves false, |
129 | 129 | * a fail otherwise. |
130 | - * @param $condition Condition to test false. |
|
130 | + * @param boolean $condition Condition to test false. |
|
131 | 131 | * @param $message Message to display. |
132 | 132 | * @public |
133 | 133 | */ |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | |
138 | 138 | /** |
139 | 139 | * Tests a regex match. Needs refactoring. |
140 | - * @param $pattern Regex to match. |
|
141 | - * @param $subject String to search in. |
|
140 | + * @param string $pattern Regex to match. |
|
141 | + * @param string $subject String to search in. |
|
142 | 142 | * @param $message Message to display. |
143 | 143 | * @public |
144 | 144 | */ |
@@ -148,8 +148,8 @@ discard block |
||
148 | 148 | |
149 | 149 | /** |
150 | 150 | * Tests the type of a value. |
151 | - * @param $value Value to take type of. |
|
152 | - * @param $type Hoped for type. |
|
151 | + * @param string $value Value to take type of. |
|
152 | + * @param string $type Hoped for type. |
|
153 | 153 | * @param $message Message to display. |
154 | 154 | * @public |
155 | 155 | */ |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * Sets equality operation to act as a simple equal |
162 | 162 | * comparison only, allowing a broader range of |
163 | 163 | * matches. |
164 | - * @param $loosely_typed True for broader comparison. |
|
164 | + * @param boolean $loosely_typed True for broader comparison. |
|
165 | 165 | * @public |
166 | 166 | */ |
167 | 167 | function setLooselyTyped($loosely_typed) { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * For progress indication during |
173 | 173 | * a test amongst other things. |
174 | - * @return Usually one. |
|
174 | + * @return integer one. |
|
175 | 175 | * @public |
176 | 176 | */ |
177 | 177 | function countTestCases() { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * Sends pass if the test condition resolves true, |
35 | 35 | * a fail otherwise. |
36 | - * @param $condition Condition to test true. |
|
36 | + * @param boolean $condition Condition to test true. |
|
37 | 37 | * @param $message Message to display. |
38 | 38 | * @public |
39 | 39 | */ |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Tests a regex match. |
69 | - * @param $pattern Regex to match. |
|
70 | - * @param $subject String to search in. |
|
69 | + * @param string $pattern Regex to match. |
|
70 | + * @param string $subject String to search in. |
|
71 | 71 | * @param $message Message to display. |
72 | 72 | * @public |
73 | 73 | */ |