-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Not sure if this is a psalm issue but thought I'd come here to clarify how stubs work.
Using PHPUnit 7 which has
/**
* Registers a new expectation in the mock object and returns the match
* object which can be infused with further details.
*
* @return InvocationMocker
*/
public function expects(Invocation $matcher);
in MockObject.
This doesn't seem to appear in the stub but no error in IDE (possibly because psalm warning level is not high enough?)
When calling createMock(MyClass::class) and deprecating __call on MyClass, I get errors about DeprecatedMethod for uses of expects.
Is that expected behaviour or is something incorrect?
Metadata
Metadata
Assignees
Labels
No labels