mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-14 10:20:34 +08:00
Fix codestyle in tests (#20638)
This commit is contained in:
@@ -37,7 +37,7 @@ class BaseConsoleTest extends TestCase
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function ansiColorizedSubstr_withoutColors(): void
|
||||
public function ansiColorizedSubstrWithoutColors(): void
|
||||
{
|
||||
$str = 'FooBar';
|
||||
|
||||
@@ -56,13 +56,13 @@ class BaseConsoleTest extends TestCase
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @dataProvider ansiColorizedSubstr_withColors_data
|
||||
* @dataProvider ansiColorizedSubstrWithColorsData
|
||||
* @param $str
|
||||
* @param $start
|
||||
* @param $length
|
||||
* @param $expected
|
||||
*/
|
||||
public function ansiColorizedSubstr_withColors($str, $start, $length, $expected): void
|
||||
public function ansiColorizedSubstrWithColors($str, $start, $length, $expected): void
|
||||
{
|
||||
$ansiStr = BaseConsole::renderColoredString($str);
|
||||
|
||||
@@ -71,7 +71,7 @@ class BaseConsoleTest extends TestCase
|
||||
$this->assertEquals($ansiExpected, $ansiActual);
|
||||
}
|
||||
|
||||
public static function ansiColorizedSubstr_withColors_data(): array
|
||||
public static function ansiColorizedSubstrWithColorsData(): array
|
||||
{
|
||||
return [
|
||||
['%rFoo%gBar%n', 0, 3, '%rFoo%n'],
|
||||
|
||||
Reference in New Issue
Block a user