Set 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:
Shift
2023-05-24 21:33:13 +00:00
parent c83e21d588
commit 4124cf39db
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class ArticlesApiTest extends TestCase
protected $faker; protected $faker;
public function setUp(): void protected function setUp(): void
{ {
parent::setUp(); parent::setUp();
$this->faker = FakerFactory::create(); $this->faker = FakerFactory::create();

View File

@@ -15,7 +15,7 @@ class EventsApiTest extends TestCase
protected $faker; protected $faker;
public function setUp(): void protected function setUp(): void
{ {
parent::setUp(); parent::setUp();
$this->faker = FakerFactory::create(); $this->faker = FakerFactory::create();