/**
  * @group ZF-3472
  */
 public function testSettingParamToNullInSetparamsCorrectlyUnsetsValue()
 {
     $request = new Zend_Controller_Request_Simple();
     $request->setParam('key', 'value');
     $request->setParams(array('key' => null));
     $this->assertNull($request->getParam('key'));
 }
示例#2
0
文件: SimpleTest.php 项目: hjr3/zf2
 public function testSimpleReqestRetainsValuesPassedFromConstructor()
 {
     $request = new Zend_Controller_Request_Simple('test1', 'test2', 'test3', array('test4' => 'test5'));
     $this->assertEquals($request->getActionName(), 'test1');
     $this->assertEquals($request->getControllerName(), 'test2');
     $this->assertEquals($request->getModuleName(), 'test3');
     $this->assertEquals($request->getParam('test4'), 'test5');
 }