@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * Static fetching of a mock associated with a name or explicit class poser. |
| 159 | 159 | * |
| 160 | - * @param $name |
|
| 160 | + * @param string $name |
|
| 161 | 161 | * |
| 162 | 162 | * @return \Mockery\Mock |
| 163 | 163 | */ |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | * Returns all public instance properties. |
| 532 | 532 | * |
| 533 | 533 | * @param $object |
| 534 | - * @param $nesting |
|
| 534 | + * @param integer $nesting |
|
| 535 | 535 | * |
| 536 | 536 | * @return array |
| 537 | 537 | */ |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | * Returns all object getters. |
| 556 | 556 | * |
| 557 | 557 | * @param $object |
| 558 | - * @param $nesting |
|
| 558 | + * @param integer $nesting |
|
| 559 | 559 | * |
| 560 | 560 | * @return array |
| 561 | 561 | */ |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * After each test, perform Mockery verification tasks and cleanup the |
| 27 | 27 | * statically stored Mockery container for the next test. |
| 28 | 28 | * |
| 29 | - * @param PHPUnit_Framework_Test $test |
|
| 29 | + * @param \PHPUnit_Framework_Test $test |
|
| 30 | 30 | * @param float $time |
| 31 | 31 | */ |
| 32 | 32 | public function endTest(\PHPUnit_Framework_Test $test, $time) |
@@ -453,6 +453,9 @@ discard block |
||
| 453 | 453 | } |
| 454 | 454 | } |
| 455 | 455 | |
| 456 | + /** |
|
| 457 | + * @return MockInterface |
|
| 458 | + */ |
|
| 456 | 459 | protected function _getInstance($mockName, $constructorArgs = null) |
| 457 | 460 | { |
| 458 | 461 | if ($constructorArgs !== null) { |
@@ -503,6 +506,9 @@ discard block |
||
| 503 | 506 | } |
| 504 | 507 | } |
| 505 | 508 | |
| 509 | + /** |
|
| 510 | + * @param Generator\MockConfiguration $config |
|
| 511 | + */ |
|
| 506 | 512 | protected function checkForNamedMockClashes($config) |
| 507 | 513 | { |
| 508 | 514 | $name = $config->getName(); |
@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | return $code; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param MockConfiguration $config |
|
| 40 | + */ |
|
| 38 | 41 | protected function renderParams(Method $method, $config) |
| 39 | 42 | { |
| 40 | 43 | $class = $method->getDeclaringClass(); |
@@ -73,6 +76,9 @@ discard block |
||
| 73 | 76 | return $type ? sprintf(': %s', $type) : ''; |
| 74 | 77 | } |
| 75 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $code |
|
| 81 | + */ |
|
| 76 | 82 | protected function appendToClass($class, $code) |
| 77 | 83 | { |
| 78 | 84 | $lastBrace = strrpos($class, "}"); |
@@ -80,6 +86,9 @@ discard block |
||
| 80 | 86 | return $class; |
| 81 | 87 | } |
| 82 | 88 | |
| 89 | + /** |
|
| 90 | + * @param MockConfiguration $config |
|
| 91 | + */ |
|
| 83 | 92 | private function renderMethodBody($method, $config) |
| 84 | 93 | { |
| 85 | 94 | $invoke = $method->isStatic() ? 'static::_mockery_handleStaticMethodCall' : '$this->_mockery_handleMethodCall'; |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | $this->name = $name; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @return string |
|
| 16 | + */ |
|
| 14 | 17 | public function getName() |
| 15 | 18 | { |
| 16 | 19 | return $this->name; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Gets the namespace seperator used by classes in the namespace of this class loader. |
| 53 | 53 | * |
| 54 | - * @return void |
|
| 54 | + * @return string |
|
| 55 | 55 | */ |
| 56 | 56 | public function getNamespaceSeparator() |
| 57 | 57 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * Set expected method calls |
| 169 | 169 | * |
| 170 | 170 | * @param string $methodName,... one or many methods that are expected to be called in this mock |
| 171 | - * @return \Mockery\Expectation |
|
| 171 | + * @return CompositeExpectation |
|
| 172 | 172 | */ |
| 173 | 173 | public function shouldReceive($methodName) |
| 174 | 174 | { |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | * current mock object. The partial may then be passed to a second process |
| 298 | 298 | * to see if it fulfils the same (or exact same) contract as the original. |
| 299 | 299 | * |
| 300 | - * @param Closure $closure |
|
| 300 | + * @param \Closure $closure |
|
| 301 | 301 | */ |
| 302 | 302 | public function shouldExpect(\Closure $closure) |
| 303 | 303 | { |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | * Iterate across all expectation directors and validate each |
| 370 | 370 | * |
| 371 | 371 | * @throws \Mockery\CountValidator\Exception |
| 372 | - * @return void |
|
| 372 | + * @return boolean|null |
|
| 373 | 373 | */ |
| 374 | 374 | public function mockery_verify() |
| 375 | 375 | { |
@@ -704,6 +704,9 @@ discard block |
||
| 704 | 704 | } |
| 705 | 705 | } |
| 706 | 706 | |
| 707 | + /** |
|
| 708 | + * @return ReceivedMethodCalls |
|
| 709 | + */ |
|
| 707 | 710 | protected function _mockery_getReceivedMethodCalls() |
| 708 | 711 | { |
| 709 | 712 | return $this->_mockery_receivedMethodCalls ?: $this->_mockery_receivedMethodCalls = new \Mockery\ReceivedMethodCalls(); |
@@ -800,7 +803,7 @@ discard block |
||
| 800 | 803 | } |
| 801 | 804 | |
| 802 | 805 | /** |
| 803 | - * @return array |
|
| 806 | + * @return MockInterface |
|
| 804 | 807 | */ |
| 805 | 808 | private function getNonPublicMethods() |
| 806 | 809 | { |
@@ -50,6 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Allows additional methods to be mocked that do not explicitly exist on mocked class |
| 52 | 52 | * @param String $method name of the method to be mocked |
| 53 | + * @return Mock |
|
| 53 | 54 | */ |
| 54 | 55 | public function shouldAllowMockingMethod($method); |
| 55 | 56 | |
@@ -144,6 +145,7 @@ discard block |
||
| 144 | 145 | * |
| 145 | 146 | * @param mixed $group |
| 146 | 147 | * @param int $order |
| 148 | + * @return void |
|
| 147 | 149 | */ |
| 148 | 150 | public function mockery_setGroup($group, $order); |
| 149 | 151 | |
@@ -158,6 +160,7 @@ discard block |
||
| 158 | 160 | * Set current ordered number |
| 159 | 161 | * |
| 160 | 162 | * @param int $order |
| 163 | + * @return integer |
|
| 161 | 164 | */ |
| 162 | 165 | public function mockery_setCurrentOrder($order); |
| 163 | 166 | |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | $this->name = $name; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @return string |
|
| 16 | + */ |
|
| 14 | 17 | public function getName() |
| 15 | 18 | { |
| 16 | 19 | return $this->name; |