mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Add more tests for helpers (#18675)
This commit is contained in:
24
tests/framework/helpers/UnsetArrayValueTest.php
Normal file
24
tests/framework/helpers/UnsetArrayValueTest.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user