Permalink
Browse files

Fix TRAC-986.

  • Loading branch information...
1 parent 865413a commit 8b5044ff919f51e1da653e49bc7413f3e9f6dc29 @sebastianbergmann committed Jan 15, 2010
@@ -21,4 +21,9 @@
{
$this->__phpunit_getInvocationMocker()->verify();
}
+
+ public function __phpunit_cleanup()
+ {
+ $this->invocationMocker = NULL;
+ }
}
@@ -711,6 +711,7 @@ public function runBare()
foreach ($this->mockObjects as $mockObject) {
$this->numAssertions++;
$mockObject->__phpunit_verify();
+ $mockObject->__phpunit_cleanup();
}
$this->status = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED;
View
@@ -7,6 +7,7 @@ PHPUnit 3.4.7
-------------
* Fixed TRAC-979: `@codeCoverageIgnoreStart` is being ignored.
+* Fixed TRAC-986: Memory leaks with mock objects.
PHPUnit 3.4.6
-------------

0 comments on commit 8b5044f

Please sign in to comment.