mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 09:43:13 +08:00
Invoke PHPUnit's assertions statically
This commit is contained in:
@@ -45,8 +45,8 @@ class NotFoundRedirectHandlerTest extends TestCase
|
||||
|
||||
$resp = $this->middleware->process($request, $next->reveal());
|
||||
|
||||
$this->assertInstanceOf(Response\RedirectResponse::class, $resp);
|
||||
$this->assertEquals($expectedRedirectTo, $resp->getHeaderLine('Location'));
|
||||
self::assertInstanceOf(Response\RedirectResponse::class, $resp);
|
||||
self::assertEquals($expectedRedirectTo, $resp->getHeaderLine('Location'));
|
||||
$handle->shouldNotHaveBeenCalled();
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class NotFoundRedirectHandlerTest extends TestCase
|
||||
|
||||
$result = $this->middleware->process($req, $next->reveal());
|
||||
|
||||
$this->assertSame($resp, $result);
|
||||
self::assertSame($resp, $result);
|
||||
$handle->shouldHaveBeenCalledOnce();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class NotFoundTemplateHandlerTest extends TestCase
|
||||
|
||||
$resp = $this->handler->handle($request);
|
||||
|
||||
$this->assertInstanceOf(Response\HtmlResponse::class, $resp);
|
||||
self::assertInstanceOf(Response\HtmlResponse::class, $resp);
|
||||
$render->shouldHaveBeenCalledOnce();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user