ParaTest\Runners\PHPUnit\ResultPrinter::start PHP Method

start() public method

Initializes printing constraints, prints header information and starts the test timer
public start ( ParaTest\Runners\PHPUnit\Options $options )
$options ParaTest\Runners\PHPUnit\Options
    public function start(Options $options)
    {
        $this->numTestsWidth = strlen((string) $this->totalCases);
        $this->maxColumn = $this->numberOfColumns + (DIRECTORY_SEPARATOR == "\\" ? -1 : 0) - strlen($this->getProgress());
        printf("\nRunning phpunit in %d process%s with %s%s\n\n", $options->processes, $options->processes > 1 ? 'es' : '', $options->phpunit, $options->functional ? '. Functional mode is ON.' : '');
        if (isset($options->filtered['configuration'])) {
            printf("Configuration read from %s\n\n", $options->filtered['configuration']->getPath());
        }
        $this->timer->start();
        $this->colors = $options->colors;
        $this->processSkipped = $this->isSkippedIncompleTestCanBeTracked($options);
    }

Usage Example

Exemplo n.º 1
0
 public function run()
 {
     $this->verifyConfiguration();
     $this->initCoverage();
     $this->load();
     $this->printer->start($this->options);
 }
All Usage Examples Of ParaTest\Runners\PHPUnit\ResultPrinter::start