Skip to content

Commit 8ef2c42

Browse files
committed
fix method declarations
1 parent e6d393e commit 8ef2c42

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

tests/Backend/DefaultTimeoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DefaultTimeoutTest extends TestCase
3030

3131
private $defaultTTl = 555;
3232

33-
public function setUp()
33+
public function setUp(): void
3434
{
3535
$this->backendMock = $this->getMockBuilder(NullCache::class)->getMock();
3636

tests/Backend/FactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class FactoryTest extends TestCase
2828
*/
2929
private $factory;
3030

31-
protected function setUp()
31+
protected function setUp(): void
3232
{
3333
$this->factory = new Factory();
3434
}

tests/Backend/FileTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ class FileTest extends TestCase
2323

2424
private $cacheId = 'testid';
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->cache = $this->createFileCache();
2929
$this->cache->doSave($this->cacheId, 'anyvalue', 100);
3030
}
3131

32-
protected function tearDown()
32+
protected function tearDown(): void
3333
{
3434
$this->cache->flushAll();
3535
}

tests/Backend/KeyPrefixTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class KeyPrefixTest extends TestCase
3030

3131
private $keyPrefix = 'somePrefix';
3232

33-
public function setUp()
33+
public function setUp(): void
3434
{
3535
$this->backendMock = $this->getMockBuilder(NullCache::class)->getMock();
3636

tests/Backend/NullCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NullCacheTest extends TestCase
2323

2424
private $cacheId = 'testid';
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->cache = new NullCache();
2929
$this->cache->doSave($this->cacheId, 'anyvalue', 100);

tests/BackendTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BackendTest extends TestCase
2323

2424
private static $backends = array();
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
foreach (self::$backends as $backend) {
2929
/** @var Backend[] $backend */
@@ -33,7 +33,7 @@ protected function setUp()
3333
}
3434
}
3535

36-
public static function tearDownAfterClass()
36+
public static function tearDownAfterClass(): void
3737
{
3838
foreach (self::$backends as $backend) {
3939
/** @var Backend[] $backend */

tests/EagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class EagerTest extends TestCase
3232
private $cacheId = 'testid';
3333
private $cacheValue = 'exampleValue';
3434

35-
protected function setUp()
35+
protected function setUp(): void
3636
{
3737
$this->backend = new ArrayCache();
3838
$this->backend->doSave($this->storageId, array($this->cacheId => $this->cacheValue));

tests/LazyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LazyTest extends TestCase
2525
private $cacheId = 'testid';
2626
private $cacheValue = 'exampleValue';
2727

28-
protected function setUp()
28+
protected function setUp(): void
2929
{
3030
$backend = new ArrayCache();
3131
$this->cache = new Lazy($backend);

tests/TransientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TransientTest extends TestCase
2424
private $cacheId = 'testid';
2525
private $cacheValue = 'exampleValue';
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
$this->cache = new Transient();
3030
$this->cache->save($this->cacheId, $this->cacheValue);

0 commit comments

Comments
 (0)