Permalink
Browse files

- Fix #136.

  • Loading branch information...
1 parent e51618a commit 50fbb695905b82db9942c2abe52e79dcb8f63f2a @sebastianbergmann committed May 25, 2007
Showing with 6 additions and 0 deletions.
  1. +6 −0 PHPUnit/Framework/MockObject/Matcher/Parameters.php
@@ -111,6 +111,12 @@ public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
public function verify()
{
+ if ($this->invocation === NULL) {
+ throw new PHPUnit_Framework_ExpectationFailedException(
+ 'Mocked method does not exist.'
+ );
+ }
+
if (count($this->invocation->parameters) < count($this->parameters)) {
throw new PHPUnit_Framework_ExpectationFailedException(
sprintf(

0 comments on commit 50fbb69

Please sign in to comment.