mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-11 18:01:21 +01:00
Update dataProvider phpunit-10 and clean more code. (#19889)
This commit is contained in:
@@ -19,7 +19,7 @@ class ArrayParserTest extends TestCase
|
||||
$this->arrayParser = new ArrayParser();
|
||||
}
|
||||
|
||||
public static function convertProvider()
|
||||
public static function convertProvider(): array
|
||||
{
|
||||
return [
|
||||
['{}', []],
|
||||
@@ -38,8 +38,11 @@ class ArrayParserTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider convertProvider
|
||||
*
|
||||
* @param string $string The string to convert.
|
||||
* @param array $expected The expected result.
|
||||
*/
|
||||
public function testConvert($string, $expected)
|
||||
public function testConvert(string $string, array $expected): void
|
||||
{
|
||||
$this->assertSame($expected, $this->arrayParser->parse($string));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user