mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Update to PHPUnit 12
This commit is contained in:
@@ -30,9 +30,7 @@ class CreateShortUrlContentNegotiationMiddlewareTest extends TestCase
|
||||
public function whenNoJsonResponseIsReturnedNoFurtherOperationsArePerformed(): void
|
||||
{
|
||||
$expectedResp = new Response();
|
||||
$this->requestHandler->method('handle')->with($this->isInstanceOf(ServerRequestInterface::class))->willReturn(
|
||||
$expectedResp,
|
||||
);
|
||||
$this->requestHandler->method('handle')->willReturn($expectedResp);
|
||||
|
||||
$resp = $this->middleware->process(new ServerRequest(), $this->requestHandler);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user