protected function setUp() { $this->_object = $this->getMock('Magento_Profiler_Output_Html', array('_renderCaption')); $this->_object->expects($this->any())->method('_renderCaption')->will($this->returnValue('Code Profiler Title')); }