Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html
This commit is contained in:
Laravel Shift 2021-06-10 20:18:12 +00:00
parent 30607ac268
commit 8b82262777

View file

@ -22,12 +22,12 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app;
}
public function setUp()
protected function setUp(): void
{
parent::setUp();
}
public function tearDown()
protected function tearDown(): void
{
//Artisan::call('migrate:reset');
parent::tearDown();