mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Invoke PHPUnit's assertions statically
This commit is contained in:
@@ -47,8 +47,8 @@ class PixelActionTest extends TestCase
|
||||
$request = (new ServerRequest())->withAttribute('shortCode', $shortCode);
|
||||
$response = $this->action->process($request, $this->prophesize(RequestHandlerInterface::class)->reveal());
|
||||
|
||||
$this->assertInstanceOf(PixelResponse::class, $response);
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals('image/gif', $response->getHeaderLine('content-type'));
|
||||
self::assertInstanceOf(PixelResponse::class, $response);
|
||||
self::assertEquals(200, $response->getStatusCode());
|
||||
self::assertEquals('image/gif', $response->getHeaderLine('content-type'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user