You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class BaseTestCase extends \PHPUnit\Framework\TestCase
{
/** * @template T of object * * @param class-string<T> $class * * @return T */protectedfunctionfetch(string$class): object
{
$message = $this->fetch(); // returns object of unknown class$this->assertInstanceOf($class, $message, 'Message is not of the expected type');
return$firstMessage;
}
}
but this doesn't seem to work.
The text was updated successfully, but these errors were encountered:
I want to implement this method in my testcase:
but this doesn't seem to work.
The text was updated successfully, but these errors were encountered: