mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-20 22:27:57 +01:00
merge from yiisoft/yii2
This commit is contained in:
@@ -72,6 +72,10 @@ class DynamicModelTest extends TestCase
|
||||
$model = new DynamicModel(compact('name', 'email'));
|
||||
$this->assertEquals($email, $model->email);
|
||||
$this->assertEquals($name, $model->name);
|
||||
$this->assertTrue($model->canGetProperty('email'));
|
||||
$this->assertTrue($model->canGetProperty('name'));
|
||||
$this->assertTrue($model->canSetProperty('email'));
|
||||
$this->assertTrue($model->canSetProperty('name'));
|
||||
$this->expectException('yii\base\UnknownPropertyException');
|
||||
$age = $model->age;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user