title: Laravel 8 not running tests
body: <p>First of all, my current environment:</p>
  <ul>
  <li>Docker version 20.10.1</li>
  <li>docker-compose version 1.27.4</li>
  <li>MySql 8.0.21 (Docker Image)</li>
  <li>PHP 7.4.13 - Docker Image</li>
  <li>PHP 7.4.13 Local</li>
  </ul>
  <p>Composer.json:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;require&quot;: {
      &quot;php&quot;: &quot;^7.4|^8.0&quot;,
      &quot;doctrine/dbal&quot;: &quot;^3.0&quot;,
      &quot;fideloper/proxy&quot;: &quot;^4.4&quot;,
      &quot;fruitcake/laravel-cors&quot;: &quot;^2.0&quot;,
      &quot;guzzlehttp/guzzle&quot;: &quot;7.0&quot;,
      &quot;laravel-lang/lang&quot;: &quot;~8.0&quot;,
      &quot;laravel/framework&quot;: &quot;^8.12&quot;,
      &quot;laravel/tinker&quot;: &quot;^2.5&quot;,
      &quot;ramsey/uuid&quot;: &quot;^4.1&quot;
  },
  &quot;require-dev&quot;: {
      &quot;barryvdh/laravel-ide-helper&quot;: &quot;^2.9&quot;,
      &quot;facade/ignition&quot;: &quot;^2.5&quot;,
      &quot;fakerphp/faker&quot;: &quot;^1.9.1&quot;,
      &quot;laravel/breeze&quot;: &quot;^1.0&quot;,
      &quot;mockery/mockery&quot;: &quot;^1.4.2&quot;,
      &quot;nunomaduro/collision&quot;: &quot;^5.0&quot;,
      &quot;phpunit/phpunit&quot;: &quot;^9.3.3&quot;
  }
  </code></pre>
  <p>I'm receiving the following errors when running:</p>
  <ul>
  <li>
  <blockquote>
  <p>$ php artisan test</p>
  </blockquote>
  </li>
  </ul>
  <pre class="lang-sh prettyprint-override"><code>PHP Fatal error:  Uncaught Illuminate\Contracts\Container\BindingResolutionException: 
  Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable. 
  in /home/______/proj/php//______/vendor/laravel/framework/src/Illuminate/Container/Container.php:1038
  </code></pre>
  <p>My Test file(I didn't even finished writing my test):</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace Tests\Unit;
  
  use App\Models\Pessoa;
  use Illuminate\Foundation\Testing\RefreshDatabase;
  use Tests\TestCase;
  
  class __________ extends TestCase
  {
      use RefreshDatabase;
      protected Pessoa $pessoa;
      /**
       * A basic unit test example.
       *
       * @return void
       */
      public function testExample()
      {
          $this-&gt;pessoa = factory(Pessoa::class);
  
          $this-&gt;assertTrue(true);
      }
  }
  </code></pre>