Permalink
Browse files

Fixed #8.

  • Loading branch information...
sebastianbergmann committed Jul 6, 2006
1 parent dc98aed commit 1ebe36674001ceb2af5cbb01eeaa07d924df836a
Showing with 6 additions and 0 deletions.
  1. +6 −0 PHPUnit/Extensions/MockObject/Invocation.php
@@ -86,6 +86,12 @@ public function __construct($object, $className, $methodName, $parameters)
$this->className = $className;
$this->methodName = $methodName;
$this->parameters = $parameters;
+
+ foreach ($this->parameters as $key => $value) {
+ if (is_object($value)) {
+ $this->parameters[$key] = clone $value;
+ }
+ }
}
public function toString()

0 comments on commit 1ebe366

Please sign in to comment.