We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f5d6a commit 71bde40Copy full SHA for 71bde40
tests/unit/Framework/MockObject/TestDoubleTestCase.php
@@ -254,6 +254,18 @@ final public function testOriginalCloneMethodCanOptionallyBeCalledWhenTestDouble
254
clone $double;
255
}
256
257
+ public function testMethodNameCanOnlyBeConfiguredOnce(): void
258
+ {
259
+ $double = $this->createTestDouble(InterfaceWithReturnTypeDeclaration::class);
260
+
261
+ $this->expectException(MethodNameAlreadyConfiguredException::class);
262
263
+ $double
264
+ ->method('doSomething')
265
266
+ ->willReturn(true);
267
+ }
268
269
/**
270
* @psalm-template RealInstanceType of object
271
*
0 commit comments