修正单元测试 删除controller类show方法 用 display方法替代

This commit is contained in:
thinkphp
2016-04-18 18:08:08 +08:00
parent 2e6ba63ed9
commit da9c1a8a81
4 changed files with 17 additions and 39 deletions

View File

@@ -30,9 +30,11 @@ class View
'engine_config' => [],
];
public function __construct(array $config = [])
public function __construct($config = [])
{
$this->config($config);
if (is_array($config)) {
$this->config($config);
}
}
/**
@@ -41,7 +43,7 @@ class View
* @param array $config 配置参数
* @return object
*/
public static function instance(array $config = [])
public static function instance($config = [])
{
if (is_null(self::$instance)) {
self::$instance = new self($config);