ParaTest\Logging\LogInterpreter::rewind PHP Method

rewind() public method

Reset the array pointer of the internal readers collection
public rewind ( )
    public function rewind()
    {
        reset($this->readers);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Finalizes the run process. This method
  * prints all results, rewinds the log interpreter,
  * logs any results to JUnit, and cleans up temporary
  * files
  */
 private function complete()
 {
     $this->printer->printResults();
     $this->interpreter->rewind();
     $this->log();
     $this->logCoverage();
     $readers = $this->interpreter->getReaders();
     foreach ($readers as $reader) {
         $reader->removeLog();
     }
 }