Skip to content

Commit

Permalink
Fix exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 31, 2019
1 parent 20b0b21 commit e4c6387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/MockObject/MockBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function onlyMethods(array $methods): self
if ($this->alreadyUsedMockMethodConfiguration) {
throw new RuntimeException(
\sprintf(
'Can\'t use onlyMethods on "%s" mock because mocked methods were already configured.',
'Cannot use onlyMethods() on "%s" mock because mocked methods were already configured.',
$this->type
)
);
Expand Down Expand Up @@ -249,7 +249,7 @@ public function addMethods(array $methods): self
if ($this->alreadyUsedMockMethodConfiguration) {
throw new RuntimeException(
\sprintf(
'Can\'t use addMethods on "%s" mock because mocked methods were already configured.',
'Cannot use addMethods() on "%s" mock because mocked methods were already configured.',
$this->type
)
);
Expand Down

0 comments on commit e4c6387

Please sign in to comment.