You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
301 B
23 lines
301 B
13 years ago
|
<?php
|
||
|
class Foo extends \yii\base\Object
|
||
|
{
|
||
|
public $prop;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* ObjectTest
|
||
|
*/
|
||
|
class ObjectTest extends \yii\test\TestCase
|
||
|
{
|
||
|
public function testCreate()
|
||
|
{
|
||
|
$foo = Foo::create(array(
|
||
|
'prop' => array(
|
||
|
'test' => 'test',
|
||
|
),
|
||
|
));
|
||
|
|
||
|
$this->assertEquals('test', $foo->prop['test']);
|
||
|
}
|
||
|
}
|