I used to use the method setup of PHPUnit to create a instance for my test methods. But in Laravel 5.8 I can\'t do it
I\'ve tried both ways, and it\'s works makes a
This is what i did and it help
/**
* Set up the test
*/
public function setUp(): void
{
parent::setUp();
$this->faker = Faker::create();
}
/**
* Reset the migrations
*/
public function tearDown(): void
{
$this->artisan('migrate:reset');
parent::tearDown();
}
Not stating the return type to void in the functions