src/Runners/PHPUnit/Runner.php
public function run()
    {
        parent::run();

        while (\count($this->running) || \count($this->pending)) {
            foreach ($this->running as $key => $test) {
                try {
                    if (!$this->testIsStillRunning($test)) {
                        unset($this->running[$key]);
                        $this->releaseToken($key);
                    }
                } catch (\Exception $e) {
                    if ($this->options->verbose) {
                        echo "An error for $key: {$e->getMessage()}" . PHP_EOL;
                        echo "Command: {$test->getLastCommand()}" . PHP_EOL;
                        echo 'StdErr: ' . $test->getStderr() . PHP_EOL;
                        echo 'StdOut: ' . $test->getStdout() . PHP_EOL;
                    }
                    throw $e;
                }
            }
            $this->fillRunQueue();
            usleep(10000);
        }
        $this->complete();
    }
public function run()
    {
        parent::run();

        while (\count($this->running) || \count($this->pending)) {
            foreach ($this->running as $key => $test) {
                try {
                    if (!$this->testIsStillRunning($test)) {
                        unset($this->running[$key]);
                        $this->releaseToken($key);
                    }
                } catch (\Exception $e) {
                    if ($this->options->verbose) {
                        echo "An error for $key: {$e->getMessage()}" . PHP_EOL;
                        echo "Command: {$test->getLastCommand()}" . PHP_EOL;
                        echo 'StdErr: ' . $test->getStderr() . PHP_EOL;
                        echo 'StdOut: ' . $test->getStdout() . PHP_EOL;
                    }
                    throw $e;
                }
            }
            $this->fillRunQueue();
            usleep(10000);
        }
        $this->complete();
    }
public function run ( ) { parent :: run ( ) ; while ( \ count ( $ this -> running ) || \ count ( $ this -> pending ) ) { foreach ( $ this -> running as $ key => $ test ) { try { if ( ! $ this -> testIsStillRunning ( $ test ) ) { unset ( $ this -> running [ $ key ] ) ; $ this -> releaseToken ( $ key ) ; } } catch ( \ Exception $ e ) { if ( $ this -> options -> verbose ) { echo "An error for $key: {$e->getMessage()}" . PHP_EOL ; echo "Command: {$test->getLastCommand()}" . PHP_EOL ; echo 'StdErr: ' . $ test -> getStderr ( ) . PHP_EOL ; echo 'StdOut: ' . $ test -> getStdout ( ) . PHP_EOL ; } throw $ e ; } } $ this -> fillRunQueue ( ) ; usleep ( 10000 ) ; } $ this -> complete ( ) ; }
The money maker. Runs all ExecutableTest objects in separate processes.
The money maker . Runs all ExecutableTest objects in separate processes .