Add more tests for helpers (#18675)

This commit is contained in:
Bizley
2021-05-25 09:28:57 +02:00
committed by GitHub
parent fff35b3796
commit 4cb2dfef1a
9 changed files with 1688 additions and 173 deletions

View File

@ -0,0 +1,24 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiiunit\framework\helpers;
use yii\helpers\UnsetArrayValue;
use yiiunit\TestCase;
/**
* @group helpers
*/
class UnsetArrayValueTest extends TestCase
{
public function testSetState()
{
$object = new UnsetArrayValue();
$result = $object::__set_state([]);
$this->assertInstanceOf('yii\helpers\UnsetArrayValue', $result);
}
}