Skip to content

Commit 51d0d55

Browse files
luispabonnicolas-grekas
authored andcommitted
Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterClass methods in tests are compatible with phpunit 8.2
1 parent 2a90e9f commit 51d0d55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Store/PdoDbalStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class PdoDbalStoreTest extends AbstractStoreTest
2525

2626
protected static $dbFile;
2727

28-
public static function setupBeforeClass()
28+
public static function setUpBeforeClass(): void
2929
{
3030
self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_lock');
3131

3232
$store = new PdoStore(DriverManager::getConnection(['driver' => 'pdo_sqlite', 'path' => self::$dbFile]));
3333
$store->createTable();
3434
}
3535

36-
public static function tearDownAfterClass()
36+
public static function tearDownAfterClass(): void
3737
{
3838
@unlink(self::$dbFile);
3939
}

Tests/Store/PdoStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class PdoStoreTest extends AbstractStoreTest
2424

2525
protected static $dbFile;
2626

27-
public static function setupBeforeClass()
27+
public static function setUpBeforeClass(): void
2828
{
2929
self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_lock');
3030

3131
$store = new PdoStore('sqlite:'.self::$dbFile);
3232
$store->createTable();
3333
}
3434

35-
public static function tearDownAfterClass()
35+
public static function tearDownAfterClass(): void
3636
{
3737
@unlink(self::$dbFile);
3838
}

0 commit comments

Comments
 (0)