Add void return to method in tests. (#20602)

This commit is contained in:
Wilmer Arambula
2025-10-14 06:37:35 -03:00
committed by GitHub
parent 30824c5dcf
commit d71f7309ae
249 changed files with 2749 additions and 2538 deletions

View File

@@ -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());