Invoke PHPUnit's assertions statically

This commit is contained in:
Daniel Londero
2020-10-04 00:35:14 +02:00
parent d426dbc684
commit 065d314608
99 changed files with 567 additions and 567 deletions

View File

@@ -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();
}
}

View File

@@ -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();
}