mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-18 22:59:24 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@@ -42,7 +42,7 @@ class MssqlCacheTest extends CacheTestCase
|
||||
|
||||
/**
|
||||
* @param bool $reset whether to clean up the test database
|
||||
* @return \yii\db\Connection
|
||||
* @return Connection
|
||||
*/
|
||||
public function getConnection($reset = true)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ class MssqlCacheTest extends CacheTestCase
|
||||
return $this->_cacheInstance;
|
||||
}
|
||||
|
||||
public function testExpire()
|
||||
public function testExpire(): void
|
||||
{
|
||||
$cache = $this->getCacheInstance();
|
||||
|
||||
@@ -91,7 +91,7 @@ class MssqlCacheTest extends CacheTestCase
|
||||
$this->assertFalse($cache->get('expire_test'));
|
||||
}
|
||||
|
||||
public function testExpireAdd()
|
||||
public function testExpireAdd(): void
|
||||
{
|
||||
$cache = $this->getCacheInstance();
|
||||
|
||||
@@ -103,7 +103,7 @@ class MssqlCacheTest extends CacheTestCase
|
||||
$this->assertFalse($cache->get('expire_testa'));
|
||||
}
|
||||
|
||||
public function testSynchronousSetWithTheSameKey()
|
||||
public function testSynchronousSetWithTheSameKey(): void
|
||||
{
|
||||
$KEY = 'sync-test-key';
|
||||
$VALUE = 'sync-test-value';
|
||||
|
||||
Reference in New Issue
Block a user