public function getParams($key = null, $default = null) { // $configValue = static::getConfig(); $passedValue = $this->quina->getModuleParam($this->calledName); $params = array_merge($passedValue); if (func_num_args()) { return \Arr::get($params, $key, $default); } else { return $params; } }
/** * @dataProvider restContentProvider */ public function test_restContent($expect) { $this->assertEquals($expect, $this->quina->getRestContent()); }