Permalink
Browse files

- Leftover from [517].

  • Loading branch information...
1 parent 6e48430 commit fa759ea7f6dda1a1609f061182b866b5de8e8798 @sebastianbergmann committed Feb 21, 2007
@@ -246,9 +246,9 @@ public function verify()
throw new RuntimeException('No method matcher is set');
}
- $this->invocationMatcher->verify();
-
try {
+ $this->invocationMatcher->verify();
+
if ($this->parametersMatcher !== NULL) {
$this->parametersMatcher->verify();
}
@@ -257,7 +257,7 @@ public function verify()
catch (PHPUnit_Framework_ExpectationFailedException $e) {
throw new PHPUnit_Framework_ExpectationFailedException(
sprintf(
- "Expectation failed for %s when %s\n%s",
+ "Expectation failed for %s when %s.\n%s",
$this->methodNameMatcher->toString(),
$this->invocationMatcher->toString(),
@@ -106,7 +106,7 @@ public function verify()
if ($count !== $this->expectedCount) {
throw new PHPUnit_Framework_ExpectationFailedException(
- 'Expected invocation count for is wrong.',
+ 'Expected invocation count is wrong.',
new PHPUnit_Framework_ComparisonFailure_Scalar($this->expectedCount, $count)
);
}

0 comments on commit fa759ea

Please sign in to comment.