!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/vendor/illuminate/testing/   drwxr-xr-x
Free 12.97 GB of 57.97 GB (22.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ParallelRunner.php (4.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Testing;

use 
Illuminate\Contracts\Console\Kernel;
use 
Illuminate\Support\Facades\ParallelTesting;
use 
ParaTest\Runners\PHPUnit\Options;
use 
ParaTest\Runners\PHPUnit\RunnerInterface;
use 
ParaTest\Runners\PHPUnit\WrapperRunner;
use 
PHPUnit\TextUI\XmlConfiguration\PhpHandler;
use 
RuntimeException;
use 
Symfony\Component\Console\Output\ConsoleOutput;
use 
Symfony\Component\Console\Output\OutputInterface;

class 
ParallelRunner implements RunnerInterface
{
    
/**
     * The application resolver callback.
     *
     * @var \Closure|null
     */
    
protected static $applicationResolver;

    
/**
     * The runner resolver callback.
     *
     * @var \Closure|null
     */
    
protected static $runnerResolver;

    
/**
     * The original test runner options.
     *
     * @var \ParaTest\Runners\PHPUnit\Options
     */
    
protected $options;

    
/**
     * The output instance.
     *
     * @var \Symfony\Component\Console\Output\OutputInterface
     */
    
protected $output;

    
/**
     * The original test runner.
     *
     * @var \ParaTest\Runners\PHPUnit\RunnerInterface
     */
    
protected $runner;

    
/**
     * Creates a new test runner instance.
     *
     * @param  \ParaTest\Runners\PHPUnit\Options  $options
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
     * @return void
     */
    
public function __construct(Options $optionsOutputInterface $output)
    {
        
$this->options $options;

        if (
$output instanceof ConsoleOutput) {
            
$output = new ParallelConsoleOutput($output);
        }

        
$runnerResolver = static::$runnerResolver ?: function (Options $optionsOutputInterface $output) {
            return new 
WrapperRunner($options$output);
        };

        
$this->runner $runnerResolver($options$output);
    }

    
/**
     * Set the application resolver callback.
     *
     * @param  \Closure|null  $resolver
     * @return void
     */
    
public static function resolveApplicationUsing($resolver)
    {
        static::
$applicationResolver $resolver;
    }

    
/**
     * Set the runner resolver callback.
     *
     * @param  \Closure|null  $resolver
     * @return void
     */
    
public static function resolveRunnerUsing($resolver)
    {
        static::
$runnerResolver $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(fn () => $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 
$applicationResolver();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0296 ]--