@@ -22,10 +22,10 @@ |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @param string $className |
| 25 | - * @param string $methodname |
|
| 25 | + * @param string $methodName |
|
| 26 | 26 | * @param array $parameters |
| 27 | - * @param object $object |
|
| 28 | - * @param object $cloneObjects |
|
| 27 | + * @param stdClass $object |
|
| 28 | + * @param object stdClass |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct($className, $methodName, array $parameters, $object, $cloneObjects = false) |
| 31 | 31 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @param string $className |
| 62 | - * @param string $methodname |
|
| 62 | + * @param string $methodName |
|
| 63 | 63 | * @param array $parameters |
| 64 | 64 | * @param bool $cloneObjects |
| 65 | 65 | */ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @param mixed $id |
| 56 | - * @return bool|null |
|
| 56 | + * @return PHPUnit_Framework_MockObject_Builder_Match|null |
|
| 57 | 57 | */ |
| 58 | 58 | public function lookupId($id) |
| 59 | 59 | { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | - * @return bool |
|
| 148 | + * @return boolean|null |
|
| 149 | 149 | */ |
| 150 | 150 | public function verify() |
| 151 | 151 | { |
@@ -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) |
@@ -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 |
@@ -994,7 +994,7 @@ discard block |
||
| 994 | 994 | /** |
| 995 | 995 | * Asserts that a variable is not null. |
| 996 | 996 | * |
| 997 | - * @param mixed $actual |
|
| 997 | + * @param stdClass|null $actual |
|
| 998 | 998 | * @param string $message |
| 999 | 999 | */ |
| 1000 | 1000 | public static function assertNotNull($actual, $message = '') |
@@ -1221,9 +1221,9 @@ discard block |
||
| 1221 | 1221 | * Asserts that a variable and an attribute of an object have the same type |
| 1222 | 1222 | * and value. |
| 1223 | 1223 | * |
| 1224 | - * @param mixed $expected |
|
| 1224 | + * @param string $expected |
|
| 1225 | 1225 | * @param string $actualAttributeName |
| 1226 | - * @param object $actualClassOrObject |
|
| 1226 | + * @param ClassWithNonPublicAttributes $actualClassOrObject |
|
| 1227 | 1227 | * @param string $message |
| 1228 | 1228 | */ |
| 1229 | 1229 | public static function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $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 | * |