示例#1
0
 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;
     }
 }
示例#2
0
 /**
  * @dataProvider restContentProvider
  */
 public function test_restContent($expect)
 {
     $this->assertEquals($expect, $this->quina->getRestContent());
 }