public function testPostDispatchDoesNothingWithNeverController() { $this->request->setModuleName('bar')->setControllerName('index')->setActionName('test')->setDispatched(true); $this->helper->setNeverController(true); $this->helper->postDispatch(); $content = $this->response->getBody(); $this->assertNotContains('Rendered index/test.phtml in bar module', $content); $this->assertTrue(empty($content)); }