/**
  * Scenario run test
  */
 public function testOnScenarioRun()
 {
     $this->_handler->expects($this->any())->method('run');
     $notifications = [];
     $this->_object->onScenarioRun(function ($scenario) use(&$notifications) {
         $notifications[] = $scenario->getFile();
     });
     $this->_object->run();
     $this->assertEquals([realpath($this->_fixtureDir . '/scenario_error.jmx'), realpath($this->_fixtureDir . '/scenario_failure.jmx'), realpath($this->_fixtureDir . '/scenario.jmx')], $notifications);
 }
 public function testRunDelegation()
 {
     $reportFile = 'scenario.jtl';
     $this->_handler->expects($this->once())->method('run')->with($this->_scenario, $reportFile);
     $this->_object->run($this->_scenario, $reportFile);
 }