title: PHPUnit test with XAMPP localhost instead of laravel artisan serve
body: <p>I have unit tests (not dusk browser test) setup on laravel 5.4, I have configured the baseUrl in phpunit.xml  to </p>
  
  <blockquote>
    <p><a href="http://localhost/TestApp/public" rel="nofollow noreferrer">http://localhost/TestApp/public</a></p>
  </blockquote>
  
  <p>but when I run </p>
  
  <pre><code>vendor\bin\phpunit
  </code></pre>
  
  <p>to assert the status is 200 I get the failed test saying the status returned is 404 while on the browser I can access the URL.</p>
  
  <p>The test is as below</p>
  
  <p>
  
  <pre><code>namespace Tests\Feature;
  
  use Tests\TestCase;
  use Illuminate\Foundation\Testing\WithoutMiddleware;
  use Illuminate\Foundation\Testing\DatabaseMigrations;
  use Illuminate\Foundation\Testing\DatabaseTransactions;
  
  class ExampleTest extends TestCase
  {
  
      /**
       * A basic test example.
       *
       * @return void
       */
      public function testBasicTest()
      {
          $response = $this-&gt;get('/');
  
  
          $response-&gt;assertStatus(200);
      }
  }
  </code></pre>