mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Fixed all phpstan inspections on tests
This commit is contained in:
@@ -115,8 +115,10 @@ class QrCodeActionTest extends TestCase
|
||||
$delegate = $this->createMock(RequestHandlerInterface::class);
|
||||
|
||||
$resp = $this->action($defaultOptions)->process($req->withAttribute('shortCode', $code), $delegate);
|
||||
[$size] = getimagesizefromstring($resp->getBody()->__toString());
|
||||
$result = getimagesizefromstring($resp->getBody()->__toString());
|
||||
self::assertNotFalse($result);
|
||||
|
||||
[$size] = $result;
|
||||
self::assertEquals($expectedSize, $size);
|
||||
}
|
||||
|
||||
@@ -207,8 +209,9 @@ class QrCodeActionTest extends TestCase
|
||||
|
||||
$resp = $this->action($defaultOptions)->process($req, $delegate);
|
||||
$image = imagecreatefromstring($resp->getBody()->__toString());
|
||||
$color = imagecolorat($image, 1, 1);
|
||||
self::assertNotFalse($image);
|
||||
|
||||
$color = imagecolorat($image, 1, 1);
|
||||
self::assertEquals($color, $expectedColor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user