/home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Testing
NameSizeModeActions
Concerns/-0755rm
Constraints/-0755rm
Fluent/-0755rm
Assert.php24650644editdlrm
AssertableJsonString.php97850644editdlrm
composer.json13690644editdlrm
LICENSE.md10750644editdlrm
LoggedExceptionCollection.php1360644editdlrm
ParallelConsoleOutput.php13970644editdlrm
ParallelRunner.php40620644editdlrm
ParallelTesting.php69340644editdlrm
ParallelTestingServiceProvider.php8490644editdlrm
PendingCommand.php99500644editdlrm
TestResponse.php358560644editdlrm
TestView.php33440644editdlrm
Edit: /home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Testing/ParallelRunner.php (4062B)
options = $options; if ($output instanceof ConsoleOutput) { $output = new ParallelConsoleOutput($output); } $this->runner = new WrapperRunner($options, $output); } /** * Set the application resolver callback. * * @param \Closure|null $resolver * @return void */ public static function resolveApplicationUsing($resolver) { static::$applicationResolver = $resolver; } /** * Runs the test suite. * * @return void */ public function run(): void { (new PhpHandler)->handle($this->options->configuration()->php()); $this->forEachProcess(function () { ParallelTesting::callSetUpProcessCallbacks(); }); try { $this->runner->run(); } finally { $this->forEachProcess(function () { ParallelTesting::callTearDownProcessCallbacks(); }); } } /** * Returns the highest exit code encountered throughout the course of test execution. * * @return int */ public function getExitCode(): int { return $this->runner->getExitCode(); } /** * Apply the given callback for each process. * * @param callable $callback * @return void */ protected function forEachProcess($callback) { collect(range(1, $this->options->processes()))->each(function ($token) use ($callback) { tap($this->createApplication(), function ($app) use ($callback, $token) { ParallelTesting::resolveTokenUsing(function () use ($token) { return $token; }); $callback($app); })->flush(); }); } /** * Creates the application. * * @return \Illuminate\Contracts\Foundation\Application * * @throws \RuntimeException */ protected function createApplication() { $applicationResolver = static::$applicationResolver ?: function () { if (trait_exists(\Tests\CreatesApplication::class)) { $applicationCreator = new class { use \Tests\CreatesApplication; }; return $applicationCreator->createApplication(); } elseif (file_exists(getcwd().'/bootstrap/app.php')) { $app = require getcwd().'/bootstrap/app.php'; $app->make(Kernel::class)->bootstrap(); return $app; } throw new RuntimeException('Parallel Runner unable to resolve application.'); }; return call_user_func($applicationResolver); } }