mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-21 14:37:21 +01:00
Update dataProvider phpunit-10 and clean more code. (#19889)
This commit is contained in:
@@ -13,7 +13,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class RequestTest extends TestCase
|
||||
{
|
||||
public static function provider()
|
||||
public static function provider(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -180,11 +180,12 @@ class RequestTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider provider
|
||||
* @param array $params
|
||||
* @param array $expected
|
||||
* @param array|null $expectedException
|
||||
*
|
||||
* @param array $params The request params.
|
||||
* @param array $expected The expected result.
|
||||
* @param array|null $expectedException The expected exception.
|
||||
*/
|
||||
public function testResolve($params, $expected, $expectedException = null)
|
||||
public function testResolve(array $params, array $expected, array $expectedException = null)
|
||||
{
|
||||
if (isset($expectedException)) {
|
||||
$this->expectException($expectedException[0]);
|
||||
|
||||
Reference in New Issue
Block a user