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")); }
/** * 获取URL参数 */ protected function getParam() { return Controller::getParam(); }