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

@ -22,7 +22,7 @@ class BaseConsoleTest extends TestCase
/**
* @test
*/
public function renderColoredString()
public function renderColoredString(): void
{
$data = '%yfoo';
$actual = BaseConsole::renderColoredString($data);
@ -37,7 +37,7 @@ class BaseConsoleTest extends TestCase
/**
* @test
*/
public function ansiColorizedSubstr_withoutColors()
public function ansiColorizedSubstr_withoutColors(): void
{
$str = 'FooBar';
@ -62,7 +62,7 @@ class BaseConsoleTest extends TestCase
* @param $length
* @param $expected
*/
public function ansiColorizedSubstr_withColors($str, $start, $length, $expected)
public function ansiColorizedSubstr_withColors($str, $start, $length, $expected): void
{
$ansiStr = BaseConsole::renderColoredString($str);
@ -82,7 +82,7 @@ class BaseConsoleTest extends TestCase
];
}
public function testAnsiStrlen()
public function testAnsiStrlen(): void
{
$this->assertSame(3, BaseConsole::ansiStrlen('Foo'));
$this->assertSame(3, BaseConsole::ansiStrlen(BaseConsole::renderColoredString('Bar%y')));