Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Laragear\Preload\Http\Middleware\PreloadMiddleware;
use Laragear\Preload\Preloader;
use Laragear\Preload\PreloadServiceProvider;

use function get_class;
use function method_exists;

Expand Down Expand Up @@ -55,8 +56,8 @@ public function test_registers_global_middleware_on_production(): void
{
$http = $this->app->make(Kernel::class);

if (!method_exists($http, 'pushMiddleware')) {
$this->markTestSkipped('The ' . get_class($http) . ' does not have a pushMiddleware() method to test.');
if (! method_exists($http, 'pushMiddleware')) {
$this->markTestSkipped('The '.get_class($http).' does not have a pushMiddleware() method to test.');
}

static::assertTrue($http->hasMiddleware(PreloadMiddleware::class));
Expand All @@ -74,8 +75,8 @@ public function test_registers_global_middleware_when_config_is_true(): void
{
$http = $this->app->make(Kernel::class);

if (!method_exists($http, 'pushMiddleware')) {
$this->markTestSkipped('The ' . get_class($http) . ' does not have a pushMiddleware() method to test.');
if (! method_exists($http, 'pushMiddleware')) {
$this->markTestSkipped('The '.get_class($http).' does not have a pushMiddleware() method to test.');
}

static::assertTrue($http->hasMiddleware(PreloadMiddleware::class));
Expand Down
Loading