Skip to content

Commit

Permalink
Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterCla…
Browse files Browse the repository at this point in the history
…ss methods in tests are compatible with phpunit 8.2
  • Loading branch information
luispabon authored and nicolas-grekas committed Aug 1, 2019
1 parent c54ad0d commit de20f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MigratingSessionHandlerTest extends TestCase
private $currentHandler;
private $writeOnlyHandler;

protected function setUp()
protected function setUp(): void
{
$this->currentHandler = $this->createMock(\SessionHandlerInterface::class);
$this->writeOnlyHandler = $this->createMock(\SessionHandlerInterface::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class RedisClusterSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
public static function setupBeforeClass()
public static function setUpBeforeClass(): void
{
if (!class_exists('RedisCluster')) {
self::markTestSkipped('The RedisCluster class is required.');
Expand Down

0 comments on commit de20f46

Please sign in to comment.