public function testGetAndSetRequest() { $this->assertInstanceOf('Zend_Controller_Request_Abstract', $this->_output->getRequest()); $request = $this->getMock('Zend_Controller_Request_Abstract'); $this->_output->setRequest($request); $this->assertSame($request, $this->_output->getRequest()); }
protected function setUp() { $this->_response = $this->getMock('Zend_Controller_Response_Http', array('canSendHeaders', 'sendHeaders')); $this->_response->expects($this->any())->method('canSendHeaders')->will($this->returnValue(true)); $this->_request = $this->getMock('Zend_Controller_Request_Http', array('getHeader')); $this->_request->expects($this->any())->method('getHeader')->with('User-Agent')->will($this->returnValue('Mozilla/5.0 with FirePHP/1.6')); $this->_output = new Magento_Profiler_Driver_Standard_Output_Firebug(); $this->_output->setResponse($this->_response); $this->_output->setRequest($this->_request); }