mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-31 02:28:35 +08:00
Raise version min PHP 7.3.
This commit is contained in:
@ -19,7 +19,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class JsonTest extends TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@ -205,12 +205,13 @@ PHP
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \yii\base\InvalidArgumentException
|
||||
* @expectedExceptionMessage Invalid JSON data.
|
||||
* @covers ::decode
|
||||
*/
|
||||
public function testDecodeInvalidParamException()
|
||||
public function testDecodeInvalidArgumentException()
|
||||
{
|
||||
$this->expectException(\yii\base\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Invalid JSON data.');
|
||||
|
||||
Json::decode([]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user