Sometimes in my code, I\'ll check to see if a particular object implements an interface:
if ($instance instanceof Interface) {};
However, c
Use PhpUnit function assertInstanceOf.
Example:
$this->assertInstanceOf(ResponseInterface::class, $signInResponse);