added more tests.

This commit is contained in:
Qiang Xue
2014-01-27 17:24:48 -05:00
parent 4e96683263
commit c829dd6b47
2 changed files with 29 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ class DynamicModel extends Model
* @param array $attributes the dynamic attributes (name-value pairs, or names) being defined
* @param array $config the configuration array to be applied to this object.
*/
public function __construct(array $attributes, $config = [])
public function __construct(array $attributes = [], $config = [])
{
foreach ($attributes as $name => $value) {
if (is_integer($name)) {