rendererMock)) { $this->rendererMock = \Mockery::mock('alias:Friendica\Core\Renderer'); } $this->rendererMock ->shouldReceive('getMarkupTemplate') ->with($templateName) ->times($times) ->andReturn($return); } public function mockReplaceMacros($template, $args = [], $return = '', $times = null) { if (!isset($this->rendererMock)) { $this->rendererMock = \Mockery::mock('alias:Friendica\Core\Renderer'); } $this->rendererMock ->shouldReceive('replaceMacros') ->with($template, $args) ->times($times) ->andReturn($return); } }