title: Example PHPUnit Test on Laravel 5.4 fails with 404
body: <p>I can my project on Laravel 5.4 from link: localhost:8888/streaming_statistic/public</p>
  
  <p>I have a test:</p>
  
  <pre><code>&lt;?php
  
  namespace Tests\Feature;
  
  use Tests\TestCase;
  use Illuminate\Foundation\Testing\WithoutMiddleware;
  use Illuminate\Foundation\Testing\DatabaseMigrations;
  use Illuminate\Foundation\Testing\DatabaseTransactions;
  
  class ApiTest extends TestCase
  {
      public function testBasicTest()
      {
          $response = $this-&gt;get('/');
  
          $response-&gt;assertStatus(200);
      }
  }
  </code></pre>
  
  <p>I run all tests with command </p>
  
  <pre><code>./vendor/bin/phpunit
  </code></pre>
  
  <p>But result is:</p>
  
  <pre><code>PHPUnit 5.7.13 by Sebastian Bergmann and contributors.
  
  F                                                                   1 / 1 (100%)
  
  Time: 222 ms, Memory: 12.25MB
  
  There was 1 failure:
  
  1) Tests\Feature\ApiTest::testBasicTest
  Expected status code 200 but received 404.
  Failed asserting that false is true.
  
  /Applications/MAMP/htdocs/streaming_statistic/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:56
  /Applications/MAMP/htdocs/streaming_statistic/tests/Feature/ApiTest.php:16
  
  FAILURES!
  Tests: 1, Assertions: 1, Failures: 1.
  </code></pre>
  
  <p>I can open this page <a href="http://localhost:8888/streaming_statistic/public/" rel="noreferrer">http://localhost:8888/streaming_statistic/public/</a>
  I have an route:</p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  });
  </code></pre>
  
  <p>What i am doing wrong?
  And what the right way to write tests for controller methods in laravel? May be the HTTP tests it not the best solution for them?</p>