Skip to content

Commit

Permalink
Set return type of base TestCase methods
Browse files Browse the repository at this point in the history
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
  • Loading branch information
laravel-shift committed Feb 18, 2023
1 parent 11f4355 commit a55740e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/IseedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct()
static::$testStubsDir = __DIR__.'/stubs';
}

public function tearDown(): void
protected function tearDown(): void
{
m::close();
}
Expand Down

0 comments on commit a55740e

Please sign in to comment.