mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-15 02:40:52 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@@ -21,7 +21,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class DependencyTest extends TestCase
|
||||
{
|
||||
public function testResetReusableData()
|
||||
public function testResetReusableData(): void
|
||||
{
|
||||
$value = ['dummy'];
|
||||
$dependency = new MockDependency();
|
||||
@@ -33,7 +33,7 @@ class DependencyTest extends TestCase
|
||||
$this->assertEquals([], $this->getInaccessibleProperty($dependency, '_reusableData'));
|
||||
}
|
||||
|
||||
public function testGenerateReusableHash()
|
||||
public function testGenerateReusableHash(): void
|
||||
{
|
||||
$dependency = $this->getMockForAbstractClass(Dependency::className());
|
||||
$dependency->data = 'dummy';
|
||||
@@ -43,7 +43,7 @@ class DependencyTest extends TestCase
|
||||
$this->assertEquals(40, strlen($result));
|
||||
}
|
||||
|
||||
public function testIsChanged()
|
||||
public function testIsChanged(): void
|
||||
{
|
||||
$dependency = $this->getMockForAbstractClass(Dependency::className());
|
||||
$cache = $this->getMockForAbstractClass(Cache::className());
|
||||
|
||||
Reference in New Issue
Block a user