Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Leftover from [517].

  • Loading branch information...
commit fa759ea7f6dda1a1609f061182b866b5de8e8798 1 parent 6e48430
@sebastianbergmann authored
View
6 PHPUnit/Framework/MockObject/Matcher.php
@@ -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(),
View
2  PHPUnit/Framework/MockObject/Matcher/InvokedCount.php
@@ -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)
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.