Ejemplo n.º 1
0
 /**
  * @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();
 }
Ejemplo n.º 2
0
 /**
  * Render the profiler output.
  *
  * @return  string
  *
  * @since   1.0
  */
 public function renderProfile()
 {
     return $this->profiler->render();
 }