make(Illuminate\Contracts\Http\Kernel::class); foreach (['signin', 'signup'] as $mode) { $request = Illuminate\Http\Request::create('/auth?mode='.$mode, 'GET'); $response = $kernel->handle($request); if ($response->getStatusCode() !== 200 || substr_count($response->getContent(), 'alt="Pawzody" width="1587" height="1077"') !== 2) { throw new RuntimeException('Auth logo check failed for '.$mode); } echo $mode . ': page renders with desktop and mobile logos' . PHP_EOL; $kernel->terminate($request, $response); }