Permalink
Browse files

- Oops.

  • Loading branch information...
1 parent 75e0486 commit e2f1acbde31ea5b5612ee5889ab51bba10b4a55e @sebastianbergmann committed Jul 1, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 PHPUnit/Framework/MockObject/Mock.php
View
2 PHPUnit/Framework/MockObject/Mock.php
@@ -212,7 +212,7 @@ protected function generateClassDefinition(ReflectionClass $class)
} else {
$method = $class->getMethod($methodName);
- if (!$method->isInternal()) {
+ if (!$method->isInternal() && !$method->isConstructor() && $methodName != '__clone') {
$code .= "\n" . str_replace(
array($this->className . '::', 'self::'),
$this->mockClassName . '::',

0 comments on commit e2f1acb

Please sign in to comment.