public function testRenderLayoutWhenOutputEmpty() { $this->_actionFlagMock->expects($this->once())->method('get')->with('', 'no-renderLayout')->will($this->returnValue(false)); $this->_layoutMock->expects($this->never())->method('addOutputElement'); $this->resultPage->expects($this->once())->method('renderResult')->with($this->response); $this->_view->renderLayout(); }