public function init()
    {
        $this->root = Context::getInstance()->getCurrentSuite();

        $this->eventEmitter->on('runner.start', [$this, 'onRunnerStart']);
        $this->eventEmitter->on('suite.start', [$this, 'onSuiteStart']);
        $this->eventEmitter->on('suite.end', [$this, 'onSuiteEnd']);
        $this->eventEmitter->on('test.passed', [$this, 'onTestPassed']);
        $this->eventEmitter->on('test.failed', [$this, 'onTestFailed']);
        $this->eventEmitter->on('test.pending', [$this, 'onTestPending']);
        $this->eventEmitter->on('runner.end', [$this, 'onRunnerEnd']);
    }
public function init()
    {
        $this->root = Context::getInstance()->getCurrentSuite();

        $this->eventEmitter->on('runner.start', [$this, 'onRunnerStart']);
        $this->eventEmitter->on('suite.start', [$this, 'onSuiteStart']);
        $this->eventEmitter->on('suite.end', [$this, 'onSuiteEnd']);
        $this->eventEmitter->on('test.passed', [$this, 'onTestPassed']);
        $this->eventEmitter->on('test.failed', [$this, 'onTestFailed']);
        $this->eventEmitter->on('test.pending', [$this, 'onTestPending']);
        $this->eventEmitter->on('runner.end', [$this, 'onRunnerEnd']);
    }
public function init ( ) { $ this -> root = Context :: getInstance ( ) -> getCurrentSuite ( ) ; $ this -> eventEmitter -> on ( 'runner.start' , [ $ this , 'onRunnerStart' ] ) ; $ this -> eventEmitter -> on ( 'suite.start' , [ $ this , 'onSuiteStart' ] ) ; $ this -> eventEmitter -> on ( 'suite.end' , [ $ this , 'onSuiteEnd' ] ) ; $ this -> eventEmitter -> on ( 'test.passed' , [ $ this , 'onTestPassed' ] ) ; $ this -> eventEmitter -> on ( 'test.failed' , [ $ this , 'onTestFailed' ] ) ; $ this -> eventEmitter -> on ( 'test.pending' , [ $ this , 'onTestPending' ] ) ; $ this -> eventEmitter -> on ( 'runner.end' , [ $ this , 'onRunnerEnd' ] ) ; }
Initialize reporter. Setup and listen for runner events

@return void
Initialize reporter . Setup and listen for runner events