MacOSの laravelでアプリ制作をしています。タイトルの通りなのですが、./vendor/bin/phpunit でコードが出るのがなぜなのかについてで困っております。
コード 元ファイル $ ./vendor/bin/phpunit tests/Feature/LoginTest.php PHPUnit 9.5.18 #StandWithUkraine false <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="bEoOmywTpBmrc4KvloQ3R806JB2WvIZQNajJAFVC"> <title>Laravel</title> <!-- Scripts --> <script src="http://localhost/js/app.js" defer></script> <!-- Fonts --> <link rel="dns-prefetch" href="//fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> <!-- Styles --> <link href="http://localhost/css/app.css" rel="stylesheet"> </head> <body> <div id="app"> <div class="tbg"> <div class="theader"> <nav class="na 省略 </form> </div> </div> </div> </div> </div> </div> <div>*layouts/app.blade.php(デバック用!)</div> <div>↓result/dd(Auth::check());</div> % inoMacBook-Air 元ファイル $
また、tests/Feature/LoginTest.phpは下のようになっております
コード <?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class LoginTest extends TestCase { /** * A basic feature test example. * * @return void */ public function test_example() { $response = $this->get('/login'); $response->assertStatus(200); } }
のようになって test結果はfalseだとはわかっているのですがこのようにコードの羅列がされるのは何故なのか教えていただけると幸いです。よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。