fix: use stub instead of mock for unused handler
PHPUnit 13 warns about mock objects with no expectations. createStub() avoids the notice since the handler is never called in the expired-session test.
This commit is contained in:
parent
722c5303df
commit
a681d93f5d
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ class AuthMiddlewareTest extends TestCase
|
|||
);
|
||||
|
||||
$request = $this->createRequestWithCookie('valid-token');
|
||||
$handler = $this->createMock(RequestHandlerInterface::class);
|
||||
$handler = $this->createStub(RequestHandlerInterface::class);
|
||||
|
||||
$this->middleware->process($request, $handler);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue