/** * @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')); }
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'); }