@@ -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) |
@@ -160,9 +160,9 @@ discard block |
||
160 | 160 | * Asserts that a haystack that is stored in a static attribute of a class |
161 | 161 | * or an attribute of an object contains a needle. |
162 | 162 | * |
163 | - * @param mixed $needle |
|
163 | + * @param string|boolean $needle |
|
164 | 164 | * @param string $haystackAttributeName |
165 | - * @param mixed $haystackClassOrObject |
|
165 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
166 | 166 | * @param string $message |
167 | 167 | * @param bool $ignoreCase |
168 | 168 | * @param bool $checkForObjectIdentity |
@@ -233,9 +233,9 @@ discard block |
||
233 | 233 | * Asserts that a haystack that is stored in a static attribute of a class |
234 | 234 | * or an attribute of an object does not contain a needle. |
235 | 235 | * |
236 | - * @param mixed $needle |
|
236 | + * @param string|boolean $needle |
|
237 | 237 | * @param string $haystackAttributeName |
238 | - * @param mixed $haystackClassOrObject |
|
238 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
239 | 239 | * @param string $message |
240 | 240 | * @param bool $ignoreCase |
241 | 241 | * @param bool $checkForObjectIdentity |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | * |
323 | 323 | * @param string $type |
324 | 324 | * @param string $haystackAttributeName |
325 | - * @param mixed $haystackClassOrObject |
|
325 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
326 | 326 | * @param bool $isNativeType |
327 | 327 | * @param string $message |
328 | 328 | * |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * |
382 | 382 | * @param string $type |
383 | 383 | * @param string $haystackAttributeName |
384 | - * @param mixed $haystackClassOrObject |
|
384 | + * @param ClassWithNonPublicAttributes $haystackClassOrObject |
|
385 | 385 | * @param bool $isNativeType |
386 | 386 | * @param string $message |
387 | 387 | * |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | * |
430 | 430 | * @param int $expectedCount |
431 | 431 | * @param string $haystackAttributeName |
432 | - * @param mixed $haystackClassOrObject |
|
432 | + * @param stdClass $haystackClassOrObject |
|
433 | 433 | * @param string $message |
434 | 434 | * |
435 | 435 | * @since Method available since Release 3.6.0 |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | * |
476 | 476 | * @param int $expectedCount |
477 | 477 | * @param string $haystackAttributeName |
478 | - * @param mixed $haystackClassOrObject |
|
478 | + * @param stdClass $haystackClassOrObject |
|
479 | 479 | * @param string $message |
480 | 480 | * |
481 | 481 | * @since Method available since Release 3.6.0 |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | /** |
570 | 570 | * Asserts that a variable is not equal to an attribute of an object. |
571 | 571 | * |
572 | - * @param mixed $expected |
|
572 | + * @param string $expected |
|
573 | 573 | * @param string $actualAttributeName |
574 | 574 | * @param string $actualClassOrObject |
575 | 575 | * @param string $message |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | * is empty. |
610 | 610 | * |
611 | 611 | * @param string $haystackAttributeName |
612 | - * @param mixed $haystackClassOrObject |
|
612 | + * @param stdClass $haystackClassOrObject |
|
613 | 613 | * @param string $message |
614 | 614 | * |
615 | 615 | * @since Method available since Release 3.5.0 |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | * is not empty. |
641 | 641 | * |
642 | 642 | * @param string $haystackAttributeName |
643 | - * @param mixed $haystackClassOrObject |
|
643 | + * @param stdClass $haystackClassOrObject |
|
644 | 644 | * @param string $message |
645 | 645 | * |
646 | 646 | * @since Method available since Release 3.5.0 |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | /** |
671 | 671 | * Asserts that an attribute is greater than another value. |
672 | 672 | * |
673 | - * @param mixed $expected |
|
673 | + * @param integer $expected |
|
674 | 674 | * @param string $actualAttributeName |
675 | 675 | * @param string $actualClassOrObject |
676 | 676 | * @param string $message |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | /** |
708 | 708 | * Asserts that an attribute is greater than or equal to another value. |
709 | 709 | * |
710 | - * @param mixed $expected |
|
710 | + * @param integer $expected |
|
711 | 711 | * @param string $actualAttributeName |
712 | 712 | * @param string $actualClassOrObject |
713 | 713 | * @param string $message |
@@ -740,7 +740,7 @@ discard block |
||
740 | 740 | /** |
741 | 741 | * Asserts that an attribute is smaller than another value. |
742 | 742 | * |
743 | - * @param mixed $expected |
|
743 | + * @param integer $expected |
|
744 | 744 | * @param string $actualAttributeName |
745 | 745 | * @param string $actualClassOrObject |
746 | 746 | * @param string $message |
@@ -773,7 +773,7 @@ discard block |
||
773 | 773 | /** |
774 | 774 | * Asserts that an attribute is smaller than or equal to another value. |
775 | 775 | * |
776 | - * @param mixed $expected |
|
776 | + * @param integer $expected |
|
777 | 777 | * @param string $actualAttributeName |
778 | 778 | * @param string $actualClassOrObject |
779 | 779 | * @param string $message |
@@ -1261,9 +1261,9 @@ discard block |
||
1261 | 1261 | * Asserts that a variable and an attribute of an object do not have the |
1262 | 1262 | * same type and value. |
1263 | 1263 | * |
1264 | - * @param mixed $expected |
|
1264 | + * @param string $expected |
|
1265 | 1265 | * @param string $actualAttributeName |
1266 | - * @param object $actualClassOrObject |
|
1266 | + * @param ClassWithNonPublicAttributes $actualClassOrObject |
|
1267 | 1267 | * @param string $message |
1268 | 1268 | */ |
1269 | 1269 | public static function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -1343,7 +1343,7 @@ discard block |
||
1343 | 1343 | * |
1344 | 1344 | * @param string $expected |
1345 | 1345 | * @param string $attributeName |
1346 | - * @param mixed $classOrObject |
|
1346 | + * @param stdClass $classOrObject |
|
1347 | 1347 | * @param string $message |
1348 | 1348 | * |
1349 | 1349 | * @since Method available since Release 3.5.0 |
@@ -1384,7 +1384,7 @@ discard block |
||
1384 | 1384 | * |
1385 | 1385 | * @param string $expected |
1386 | 1386 | * @param string $attributeName |
1387 | - * @param mixed $classOrObject |
|
1387 | + * @param stdClass $classOrObject |
|
1388 | 1388 | * @param string $message |
1389 | 1389 | * |
1390 | 1390 | * @since Method available since Release 3.5.0 |
@@ -1425,7 +1425,7 @@ discard block |
||
1425 | 1425 | * |
1426 | 1426 | * @param string $expected |
1427 | 1427 | * @param string $attributeName |
1428 | - * @param mixed $classOrObject |
|
1428 | + * @param stdClass $classOrObject |
|
1429 | 1429 | * @param string $message |
1430 | 1430 | * |
1431 | 1431 | * @since Method available since Release 3.5.0 |
@@ -2571,7 +2571,7 @@ discard block |
||
2571 | 2571 | * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher |
2572 | 2572 | * object. |
2573 | 2573 | * |
2574 | - * @param mixed $value |
|
2574 | + * @param string $value |
|
2575 | 2575 | * @param bool $checkForObjectIdentity |
2576 | 2576 | * @param bool $checkForNonObjectIdentity |
2577 | 2577 | * |
@@ -2892,7 +2892,7 @@ discard block |
||
2892 | 2892 | /** |
2893 | 2893 | * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object. |
2894 | 2894 | * |
2895 | - * @param mixed $prefix |
|
2895 | + * @param string $prefix |
|
2896 | 2896 | * |
2897 | 2897 | * @return PHPUnit_Framework_Constraint_StringStartsWith |
2898 | 2898 | * |
@@ -2921,7 +2921,7 @@ discard block |
||
2921 | 2921 | /** |
2922 | 2922 | * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object. |
2923 | 2923 | * |
2924 | - * @param mixed $suffix |
|
2924 | + * @param string $suffix |
|
2925 | 2925 | * |
2926 | 2926 | * @return PHPUnit_Framework_Constraint_StringEndsWith |
2927 | 2927 | * |
@@ -2395,7 +2395,6 @@ |
||
2395 | 2395 | } |
2396 | 2396 | |
2397 | 2397 | /** |
2398 | - * @param mixed $value, ... |
|
2399 | 2398 | * |
2400 | 2399 | * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls |
2401 | 2400 | * |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * @param string $description Additional information about the test |
102 | 102 | * @param bool $returnResult Whether to return a result or throw an exception |
103 | 103 | * |
104 | - * @return mixed |
|
104 | + * @return boolean |
|
105 | 105 | * |
106 | 106 | * @throws PHPUnit_Framework_ExpectationFailedException |
107 | 107 | */ |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | } |
468 | 468 | |
469 | 469 | /** |
470 | - * @param mixed $exceptionName |
|
470 | + * @param string $exceptionName |
|
471 | 471 | * @param string $exceptionMessageRegExp |
472 | 472 | * @param int $exceptionCode |
473 | 473 | * |
@@ -1028,6 +1028,7 @@ discard block |
||
1028 | 1028 | * Sets the name of a TestCase. |
1029 | 1029 | * |
1030 | 1030 | * @param string |
1031 | + * @param string $name |
|
1031 | 1032 | */ |
1032 | 1033 | public function setName($name) |
1033 | 1034 | { |
@@ -1262,8 +1263,6 @@ discard block |
||
1262 | 1263 | * This method is a wrapper for the setlocale() function that automatically |
1263 | 1264 | * resets the locale to its original value after the test is run. |
1264 | 1265 | * |
1265 | - * @param int $category |
|
1266 | - * @param string $locale |
|
1267 | 1266 | * |
1268 | 1267 | * @throws PHPUnit_Framework_Exception |
1269 | 1268 | * |
@@ -1774,7 +1773,6 @@ discard block |
||
1774 | 1773 | } |
1775 | 1774 | |
1776 | 1775 | /** |
1777 | - * @param mixed $value, ... |
|
1778 | 1776 | * |
1779 | 1777 | * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls |
1780 | 1778 | * |
@@ -1004,6 +1004,7 @@ |
||
1004 | 1004 | } |
1005 | 1005 | |
1006 | 1006 | /** |
1007 | + * @param string $message |
|
1007 | 1008 | */ |
1008 | 1009 | private function showError($message) |
1009 | 1010 | { |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * @param bool $verbose |
113 | 113 | * @param string $colors |
114 | 114 | * @param bool $debug |
115 | - * @param int|string $numberOfColumns |
|
115 | + * @param integer $numberOfColumns |
|
116 | 116 | * |
117 | 117 | * @throws PHPUnit_Framework_Exception |
118 | 118 | * |
@@ -1019,7 +1019,7 @@ |
||
1019 | 1019 | } |
1020 | 1020 | |
1021 | 1021 | /** |
1022 | - * @param $extension |
|
1022 | + * @param string $extension |
|
1023 | 1023 | * @param string $message |
1024 | 1024 | * |
1025 | 1025 | * @since Method available since Release 4.7.3 |