Skip to content
Browse files

- Merge [3921].

  • Loading branch information...
1 parent 0287ed6 commit 7447adb28b5bee16fd751b32072e15c496e5d867 @sebastianbergmann committed Nov 1, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 PHPUnit/Framework/MockObject/Mock.php
View
5 PHPUnit/Framework/MockObject/Mock.php
@@ -419,11 +419,12 @@ protected function generateConstructorCodeWithParentCall(ReflectionClass $class)
" public function __construct(%s) {\n" .
" \$args = func_get_args();\n" .
" \$this->invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;\n" .
- " \$class = new ReflectionClass(\$this);\n" .
+ " \$class = new ReflectionClass('%s');\n" .
" \$class->getParentClass()->getConstructor()->invokeArgs(\$this, \$args);\n" .
" }\n\n",
- PHPUnit_Util_Class::getMethodParameters($constructor)
+ PHPUnit_Util_Class::getMethodParameters($constructor),
+ $this->mockClassName
);
} else {
return $this->generateConstructorCode($class);

0 comments on commit 7447adb

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