From 06835115d090654371dee19150c186687d27bf8c Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 6 Sep 2019 11:57:38 +0200 Subject: [PATCH] #3120 we will keep `InvocationStubber#will()` - useful for callbacks and such --- src/Framework/MockObject/Builder/InvocationStubber.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Framework/MockObject/Builder/InvocationStubber.php b/src/Framework/MockObject/Builder/InvocationStubber.php index 82ed97f3d23..93fcd4e97ff 100644 --- a/src/Framework/MockObject/Builder/InvocationStubber.php +++ b/src/Framework/MockObject/Builder/InvocationStubber.php @@ -14,11 +14,6 @@ /** @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface InvocationStubber { - /** - * @TODO is "will" actually sensible in a stub context? Should a stub produce side-effects? - * - * Note: probably yes, since you want a stub of a promise to be able to resolve a real callback, for example - */ public function will(Stub $stub): Identity; /** @return self */