/** * @covers \Joomla\Profiler\Profiler::render * @uses \Joomla\Profiler\Profiler::setRenderer */ public function testTheProfilerRendersItsData() { $mockedRenderer = $this->getMock('\\Joomla\\Profiler\\ProfilerRendererInterface'); $mockedRenderer->expects($this->once())->method('render')->with($this->instance); $this->instance->setRenderer($mockedRenderer); $this->instance->render(); }
/** * Render the profiler output. * * @return string * * @since 1.0 */ public function renderProfile() { return $this->profiler->render(); }