First of all, my current environment:
- Docker version 20.10.1
- docker-compose version 1.27.4
- MySql 8.0.21 (Docker Image)
- PHP 7.4.13 - Docker Image
- PHP 7.4.13 Local
Composer.json:
"require": {
"php": "^7.4|^8.0",
"doctrine/dbal": "^3.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "7.0",
"laravel-lang/lang": "~8.0",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"ramsey/uuid": "^4.1"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.9",
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.0",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
}
I'm receiving the following errors when running:
-
$ php artisan test
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
My Test file(I didn't even finished writing my test):
<?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->pessoa = factory(Pessoa::class);
$this->assertTrue(true);
}
}
Aucun commentaire:
Enregistrer un commentaire