Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Oops.

  • Loading branch information...
commit e2f1acbde31ea5b5612ee5889ab51bba10b4a55e 1 parent 75e0486
Sebastian Bergmann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  PHPUnit/Framework/MockObject/Mock.php
2  PHPUnit/Framework/MockObject/Mock.php
View
@@ -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 . '::',
Please sign in to comment.
Something went wrong with that request. Please try again.