public function testRenderScriptToPreviouslyNamedResponseSegment() { $this->request->setModuleName('bar')->setControllerName('index')->setActionName('test'); $controller = new Bar_IndexController($this->request, $this->response, array()); $this->helper->setResponseSegment('foo'); $this->helper->renderScript('index/test.phtml'); $body = $this->response->getBody('foo'); $this->assertContains('Rendered index/test.phtml in bar module', $body); }