public function testGenerateReport()
 {
     $report = $this->getMockBuilder('VIPSoft\\CodeCoverageCommon\\Report\\Html')->disableOriginalConstructor()->getMock();
     $factory = $this->getMock('VIPSoft\\CodeCoverageCommon\\Report\\Factory');
     $factory->expects($this->once())->method('create')->will($this->returnValue($report));
     $coverage = $this->getMock('PHP_CodeCoverage');
     $service = new ReportService(array('report' => array('format' => 'html', 'options' => array())), $factory);
     $service->generateReport($coverage);
 }
 /**
  * After Exercise hook
  *
  * @param \Behat\Testwork\Tester\Event\ExerciseCompleted $event
  */
 public function afterExercise(ExerciseCompleted $event)
 {
     $this->reportService->generateReport($this->coverage);
 }