Example #1
0
 public function testGetParam()
 {
     $p = array('hello' => "ciao");
     $this->object->setParams($p);
     $this->assertEquals("ciao", $this->object->getParam('hello'));
     $this->assertFalse($this->object->getParam("missing-key"));
 }
Example #2
0
 /**
  * 获取URL参数
  */
 protected function getParam()
 {
     return Controller::getParam();
 }