Permalink
Browse files

Fix TRAC-977.

  • Loading branch information...
1 parent c0e3f76 commit d1828d6fc46351501c108f4cfba5652dfe6f55ea @sebastianbergmann committed Dec 30, 2009
Showing with 5 additions and 0 deletions.
  1. +4 −0 PHPUnit/Framework/TestCase.php
  2. +1 −0 README.markdown
@@ -1177,6 +1177,10 @@ protected function getMockForAbstractClass($originalClassName, array $arguments
}
}
+ if (empty($methods)) {
+ $methods = NULL;
+ }
+
return $this->getMock(
$originalClassName,
$methods,
View
@@ -14,6 +14,7 @@ PHPUnit 3.4.6
* Fixed TRAC-945: File not found error (and other weird stuff) comes up if shell sends `\n` in `argv`.
* Fixed TRAC-949: Invalid XML generated on binary diffs.
* Fixed TRAC-969: Destructors cannot be mocked.
+* Fixed TRAC-977: `getMockForAbstractClass()` mocks all methods on an abstract class without abstract methods.
* The [YAML](http://components.symfony-project.org/yaml/) component from the [Symfony Components](http://components.symfony-project.org/) is no longer bundled but required as a dependency.
PHPUnit 3.4.5

0 comments on commit d1828d6

Please sign in to comment.