@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param PHPUnit_Framework_MockObject_Invocation $invocation |
60 | - * @return bool |
|
60 | + * @return boolean|null |
|
61 | 61 | */ |
62 | 62 | public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) |
63 | 63 | { |
@@ -79,9 +79,6 @@ |
||
79 | 79 | * does the matcher will get the invoked() method called which should check |
80 | 80 | * if an expectation is met. |
81 | 81 | * |
82 | - * @param PHPUnit_Framework_MockObject_Invocation $invocation |
|
83 | - * Object containing information on a mocked or stubbed method which |
|
84 | - * was invoked. |
|
85 | 82 | * @return bool |
86 | 83 | * @throws PHPUnit_Framework_ExpectationFailedException |
87 | 84 | */ |
@@ -45,10 +45,7 @@ |
||
45 | 45 | * the matcher will get the invoked() method called which should check if an |
46 | 46 | * expectation is met. |
47 | 47 | * |
48 | - * @param PHPUnit_Framework_MockObject_Invocation $invocation |
|
49 | - * Object containing information on a mocked or stubbed method which |
|
50 | - * was invoked. |
|
51 | - * @return bool |
|
48 | + * @return boolean|null |
|
52 | 49 | */ |
53 | 50 | public function verify() |
54 | 51 | { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | /** |
74 | 74 | * @param PHPUnit_Framework_TestCase $testCase |
75 | - * @param array|string $type |
|
75 | + * @param string $type |
|
76 | 76 | */ |
77 | 77 | public function __construct(PHPUnit_Framework_TestCase $testCase, $type) |
78 | 78 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Specifies the subset of methods to mock. Default is to mock all of them. |
144 | 144 | * |
145 | - * @param array|null $methods |
|
145 | + * @param string[] $methods |
|
146 | 146 | * @return PHPUnit_Framework_MockObject_MockBuilder |
147 | 147 | */ |
148 | 148 | public function setMethods($methods) |
@@ -156,9 +156,9 @@ discard block |
||
156 | 156 | * Asserts that a haystack that is stored in a static attribute of a class |
157 | 157 | * or an attribute of an object contains a needle. |
158 | 158 | * |
159 | - * @param mixed $needle |
|
159 | + * @param string|boolean $needle |
|
160 | 160 | * @param string $haystackAttributeName |
161 | - * @param mixed $haystackClassOrObject |
|
161 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
162 | 162 | * @param string $message |
163 | 163 | * @param bool $ignoreCase |
164 | 164 | * @param bool $checkForObjectIdentity |
@@ -227,9 +227,9 @@ discard block |
||
227 | 227 | * Asserts that a haystack that is stored in a static attribute of a class |
228 | 228 | * or an attribute of an object does not contain a needle. |
229 | 229 | * |
230 | - * @param mixed $needle |
|
230 | + * @param string|boolean $needle |
|
231 | 231 | * @param string $haystackAttributeName |
232 | - * @param mixed $haystackClassOrObject |
|
232 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
233 | 233 | * @param string $message |
234 | 234 | * @param bool $ignoreCase |
235 | 235 | * @param bool $checkForObjectIdentity |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * |
315 | 315 | * @param string $type |
316 | 316 | * @param string $haystackAttributeName |
317 | - * @param mixed $haystackClassOrObject |
|
317 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
318 | 318 | * @param bool $isNativeType |
319 | 319 | * @param string $message |
320 | 320 | * @since Method available since Release 3.1.4 |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * |
372 | 372 | * @param string $type |
373 | 373 | * @param string $haystackAttributeName |
374 | - * @param mixed $haystackClassOrObject |
|
374 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
375 | 375 | * @param bool $isNativeType |
376 | 376 | * @param string $message |
377 | 377 | * @since Method available since Release 3.1.4 |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | * |
419 | 419 | * @param int $expectedCount |
420 | 420 | * @param string $haystackAttributeName |
421 | - * @param mixed $haystackClassOrObject |
|
421 | + * @param stdClass $haystackClassOrObject |
|
422 | 422 | * @param string $message |
423 | 423 | * @since Method available since Release 3.6.0 |
424 | 424 | */ |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | * |
464 | 464 | * @param int $expectedCount |
465 | 465 | * @param string $haystackAttributeName |
466 | - * @param mixed $haystackClassOrObject |
|
466 | + * @param stdClass $haystackClassOrObject |
|
467 | 467 | * @param string $message |
468 | 468 | * @since Method available since Release 3.6.0 |
469 | 469 | */ |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | /** |
556 | 556 | * Asserts that a variable is not equal to an attribute of an object. |
557 | 557 | * |
558 | - * @param mixed $expected |
|
558 | + * @param string $expected |
|
559 | 559 | * @param string $actualAttributeName |
560 | 560 | * @param string $actualClassOrObject |
561 | 561 | * @param string $message |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | /** |
652 | 652 | * Asserts that an attribute is greater than another value. |
653 | 653 | * |
654 | - * @param mixed $expected |
|
654 | + * @param integer $expected |
|
655 | 655 | * @param string $actualAttributeName |
656 | 656 | * @param string $actualClassOrObject |
657 | 657 | * @param string $message |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | /** |
687 | 687 | * Asserts that an attribute is greater than or equal to another value. |
688 | 688 | * |
689 | - * @param mixed $expected |
|
689 | + * @param integer $expected |
|
690 | 690 | * @param string $actualAttributeName |
691 | 691 | * @param string $actualClassOrObject |
692 | 692 | * @param string $message |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | /** |
718 | 718 | * Asserts that an attribute is smaller than another value. |
719 | 719 | * |
720 | - * @param mixed $expected |
|
720 | + * @param integer $expected |
|
721 | 721 | * @param string $actualAttributeName |
722 | 722 | * @param string $actualClassOrObject |
723 | 723 | * @param string $message |
@@ -748,7 +748,7 @@ discard block |
||
748 | 748 | /** |
749 | 749 | * Asserts that an attribute is smaller than or equal to another value. |
750 | 750 | * |
751 | - * @param mixed $expected |
|
751 | + * @param integer $expected |
|
752 | 752 | * @param string $actualAttributeName |
753 | 753 | * @param string $actualClassOrObject |
754 | 754 | * @param string $message |
@@ -1219,9 +1219,9 @@ discard block |
||
1219 | 1219 | * Asserts that a variable and an attribute of an object do not have the |
1220 | 1220 | * same type and value. |
1221 | 1221 | * |
1222 | - * @param mixed $expected |
|
1222 | + * @param string $expected |
|
1223 | 1223 | * @param string $actualAttributeName |
1224 | - * @param object $actualClassOrObject |
|
1224 | + * @param ClassWithNonPublicAttributes $actualClassOrObject |
|
1225 | 1225 | * @param string $message |
1226 | 1226 | */ |
1227 | 1227 | public static function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -1298,7 +1298,7 @@ discard block |
||
1298 | 1298 | * |
1299 | 1299 | * @param string $expected |
1300 | 1300 | * @param string $attributeName |
1301 | - * @param mixed $classOrObject |
|
1301 | + * @param stdClass $classOrObject |
|
1302 | 1302 | * @param string $message |
1303 | 1303 | * @since Method available since Release 3.5.0 |
1304 | 1304 | */ |
@@ -1337,7 +1337,7 @@ discard block |
||
1337 | 1337 | * |
1338 | 1338 | * @param string $expected |
1339 | 1339 | * @param string $attributeName |
1340 | - * @param mixed $classOrObject |
|
1340 | + * @param stdClass $classOrObject |
|
1341 | 1341 | * @param string $message |
1342 | 1342 | * @since Method available since Release 3.5.0 |
1343 | 1343 | */ |
@@ -1376,7 +1376,7 @@ discard block |
||
1376 | 1376 | * |
1377 | 1377 | * @param string $expected |
1378 | 1378 | * @param string $attributeName |
1379 | - * @param mixed $classOrObject |
|
1379 | + * @param stdClass $classOrObject |
|
1380 | 1380 | * @param string $message |
1381 | 1381 | * @since Method available since Release 3.5.0 |
1382 | 1382 | */ |
@@ -2520,7 +2520,7 @@ discard block |
||
2520 | 2520 | * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher |
2521 | 2521 | * object. |
2522 | 2522 | * |
2523 | - * @param mixed $value |
|
2523 | + * @param string $value |
|
2524 | 2524 | * @param bool $checkForObjectIdentity |
2525 | 2525 | * @param bool $checkForNonObjectIdentity |
2526 | 2526 | * @return PHPUnit_Framework_Constraint_TraversableContains |
@@ -2804,7 +2804,7 @@ discard block |
||
2804 | 2804 | /** |
2805 | 2805 | * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object. |
2806 | 2806 | * |
2807 | - * @param mixed $prefix |
|
2807 | + * @param string $prefix |
|
2808 | 2808 | * @return PHPUnit_Framework_Constraint_StringStartsWith |
2809 | 2809 | * @since Method available since Release 3.4.0 |
2810 | 2810 | */ |
@@ -2829,7 +2829,7 @@ discard block |
||
2829 | 2829 | /** |
2830 | 2830 | * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object. |
2831 | 2831 | * |
2832 | - * @param mixed $suffix |
|
2832 | + * @param string $suffix |
|
2833 | 2833 | * @return PHPUnit_Framework_Constraint_StringEndsWith |
2834 | 2834 | * @since Method available since Release 3.4.0 |
2835 | 2835 | */ |
@@ -2265,7 +2265,6 @@ |
||
2265 | 2265 | } |
2266 | 2266 | |
2267 | 2267 | /** |
2268 | - * @param mixed $value, ... |
|
2269 | 2268 | * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls |
2270 | 2269 | * @since Method available since Release 3.0.0 |
2271 | 2270 | */ |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * @param mixed $other Value or object to evaluate. |
100 | 100 | * @param string $description Additional information about the test |
101 | 101 | * @param bool $returnResult Whether to return a result or throw an exception |
102 | - * @return mixed |
|
102 | + * @return boolean |
|
103 | 103 | * @throws PHPUnit_Framework_ExpectationFailedException |
104 | 104 | */ |
105 | 105 | public function evaluate($other, $description = '', $returnResult = false) |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | } |
443 | 443 | |
444 | 444 | /** |
445 | - * @param mixed $exceptionName |
|
445 | + * @param string $exceptionName |
|
446 | 446 | * @param string $exceptionMessage |
447 | 447 | * @param int $exceptionCode |
448 | 448 | * @since Method available since Release 3.2.0 |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | } |
456 | 456 | |
457 | 457 | /** |
458 | - * @param mixed $exceptionName |
|
458 | + * @param string $exceptionName |
|
459 | 459 | * @param string $exceptionMessageRegExp |
460 | 460 | * @param int $exceptionCode |
461 | 461 | * @since Method available since Release 4.3.0 |
@@ -1000,6 +1000,7 @@ discard block |
||
1000 | 1000 | * Sets the name of a TestCase. |
1001 | 1001 | * |
1002 | 1002 | * @param string |
1003 | + * @param string $name |
|
1003 | 1004 | */ |
1004 | 1005 | public function setName($name) |
1005 | 1006 | { |
@@ -1213,8 +1214,6 @@ discard block |
||
1213 | 1214 | * This method is a wrapper for the setlocale() function that automatically |
1214 | 1215 | * resets the locale to its original value after the test is run. |
1215 | 1216 | * |
1216 | - * @param int $category |
|
1217 | - * @param string $locale |
|
1218 | 1217 | * @throws PHPUnit_Framework_Exception |
1219 | 1218 | * @since Method available since Release 3.1.0 |
1220 | 1219 | */ |
@@ -1676,7 +1675,6 @@ discard block |
||
1676 | 1675 | } |
1677 | 1676 | |
1678 | 1677 | /** |
1679 | - * @param mixed $value, ... |
|
1680 | 1678 | * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls |
1681 | 1679 | * @since Method available since Release 3.0.0 |
1682 | 1680 | */ |
@@ -976,6 +976,7 @@ |
||
976 | 976 | } |
977 | 977 | |
978 | 978 | /** |
979 | + * @param string $message |
|
979 | 980 | */ |
980 | 981 | private function showError($message) |
981 | 982 | { |