public function onWorkerCompleted(Worker $worker)
    {
        $info = $worker->getJobInfo();
        $this->times[$info->file] = $info->end - $info->start;
        $data = $this->suites[$info->file];

        if ($data) {
            $this->writeTestReport($this->suites[$info->file]);
        }
    }
public function onWorkerCompleted(Worker $worker)
    {
        $info = $worker->getJobInfo();
        $this->times[$info->file] = $info->end - $info->start;
        $data = $this->suites[$info->file];

        if ($data) {
            $this->writeTestReport($this->suites[$info->file]);
        }
    }
public function onWorkerCompleted ( Worker $ worker ) { $ info = $ worker -> getJobInfo ( ) ; $ this -> times [ $ info -> file ] = $ info -> end - $ info -> start ; $ data = $ this -> suites [ $ info -> file ] ; if ( $ data ) { $ this -> writeTestReport ( $ this -> suites [ $ info -> file ] ) ; } }
Track the time it took a worker to complete.

@param Worker $worker
@return void
Track the time it took a worker to complete .