Skip to content
Browse files

- Merge [1022].

  • Loading branch information...
1 parent f11f372 commit d1a638a2c147f279ac60414c0e9e8c455b60584c @sebastianbergmann committed Sep 2, 2007
Showing with 4 additions and 3 deletions.
  1. +4 −3 PHPUnit/Framework/MockObject/Mock.php
View
7 PHPUnit/Framework/MockObject/Mock.php
@@ -261,10 +261,11 @@ protected function generateMethodDefinition($className, $methodName, $modifier,
{
return sprintf(
"\n %s function %s%s(%s) {\n" .
- " \$args = func_get_args();\n" .
- " return \$this->invocationMocker->invoke(\n" .
+ " \$args = func_get_args();\n" .
+ " \$result = \$this->invocationMocker->invoke(\n" .
" new PHPUnit_Framework_MockObject_Invocation(\$this, \"%s\", \"%s\", \$args)\n" .
- " );\n" .
+ " );\n\n" .
+ " return \$result;\n" .
" }\n",
$modifier,

0 comments on commit d1a638a

Please sign in to comment.
Something went wrong with that request. Please try again.