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

declare(strict_types=1);

namespace 
ParaTest\JUnit;

use 
SimpleXMLElement;

use function 
assert;
use function 
count;
use function 
current;
use function 
iterator_to_array;
use function 
sprintf;

/**
 * @internal
 *
 * @immutable
 */
class TestCase
{
    public function 
__construct(
        public readonly 
string $name,
        public readonly 
string $class,
        public readonly 
string $file,
        public readonly 
int $line,
        public readonly 
int $assertions,
        public readonly 
float $time
    
) {
    }

    final public static function 
caseFromNode(SimpleXMLElement $node): self
    
{
        
$getFirstNode = static function (array $nodes): SimpleXMLElement {
            
assert(count($nodes) === 1);
            
$node current($nodes);
            
assert($node instanceof SimpleXMLElement);

            return 
$node;
        };
        
$getType      = static function (SimpleXMLElement $node): string {
            
$element $node->attributes();
            
assert($element !== null);
            
$attributes iterator_to_array($element);
            
assert($attributes !== []);

            return (string) 
$attributes['type'];
        };

        if ((
$errors $node->xpath('error')) !== []) {
            
$error $getFirstNode($errors);
            
$type  $getType($error);
            
$text  = (string) $error;

            return new 
TestCaseWithMessage(
                (string) 
$node['name'],
                (string) 
$node['class'],
                (string) 
$node['file'],
                (int) 
$node['line'],
                (int) 
$node['assertions'],
                (float) 
$node['time'],
                
$type,
                
$text,
                
MessageType::error,
            );
        }

        if ((
$failures $node->xpath('failure')) !== []) {
            
$failure $getFirstNode($failures);
            
$type    $getType($failure);
            
$text    = (string) $failure;

            return new 
TestCaseWithMessage(
                (string) 
$node['name'],
                (string) 
$node['class'],
                (string) 
$node['file'],
                (int) 
$node['line'],
                (int) 
$node['assertions'],
                (float) 
$node['time'],
                
$type,
                
$text,
                
MessageType::failure,
            );
        }

        if (
$node->xpath('skipped') !== []) {
            
$text = (string) $node['name'];
            if ((string) 
$node['class'] !== '') {
                
$text sprintf(
                    
"%s::%s\n\n%s:%s",
                    
$node['class'],
                    
$node['name'],
                    
$node['file'],
                    
$node['line'],
                );
            }

            return new 
TestCaseWithMessage(
                (string) 
$node['name'],
                (string) 
$node['class'],
                (string) 
$node['file'],
                (int) 
$node['line'],
                (int) 
$node['assertions'],
                (float) 
$node['time'],
                
null,
                
$text,
                
MessageType::skipped,
            );
        }

        return new 
self(
            (string) 
$node['name'],
            (string) 
$node['class'],
            (string) 
$node['file'],
            (int) 
$node['line'],
            (int) 
$node['assertions'],
            (float) 
$node['time'],
        );
    }
}

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