File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests/unit/Framework/MockObject Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ private function findMatcher(Invocation $invocation): ?Matcher
181
181
if (\count ($ result ) > 1 ) {
182
182
throw new RuntimeException (
183
183
\sprintf (
184
- 'Non unique mocked method invocation: %s::%s ' ,
184
+ 'More than one invocation handler has been configured for %s::%s() ' ,
185
185
$ invocation ->getClassName (),
186
186
$ invocation ->getMethodName ()
187
187
)
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function testNonUniqueMatchThrowsException(): void
53
53
->willReturn ('result ' );
54
54
55
55
$ this ->expectException (RuntimeException::class);
56
- $ this ->expectExceptionMessage ('Non unique mocked method invocation: stdClass::foo ' );
56
+ $ this ->expectExceptionMessage ('More than one invocation handler has been configured for stdClass::foo() ' );
57
57
58
58
$ mock ->foo ();
59
59
}
You can’t perform that action at this time.
0 commit comments