示例#1
0
 /**
  * @covers Fabfuel\Prophiler\Plugin\Phalcon\Mvc\ViewPlugin::afterRender
  * @uses Fabfuel\Prophiler\Plugin\Phalcon\Mvc\ViewPlugin
  * @uses Fabfuel\Prophiler\Plugin\PluginAbstract
  * @uses Fabfuel\Prophiler\Profiler
  */
 public function testAfterRender()
 {
     $benchmark = $this->getMock('\\Fabfuel\\Prophiler\\Benchmark\\BenchmarkInterface');
     $event = $this->getMockBuilder('Phalcon\\Events\\Event')->disableOriginalConstructor()->getMock();
     $view = $this->getMock('Phalcon\\Mvc\\View');
     $this->viewPlugin->setBenchmark($view, $benchmark);
     $this->getProfiler()->expects($this->once())->method('stop')->with($benchmark);
     $this->viewPlugin->afterRender($event, $view);
 }