!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/Event/Value/TestSuite/   drwxrwxr-x
Free 28.84 GB of 117.98 GB (24.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     TestSuite.php (4.23 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\Event\TestSuite;

use function 
explode;
use 
PHPUnit\Event\Code\TestCollection;
use 
PHPUnit\Event\RuntimeException;
use 
PHPUnit\Framework\DataProviderTestSuite;
use 
PHPUnit\Framework\TestCase;
use 
PHPUnit\Framework\TestSuite as FrameworkTestSuite;
use 
PHPUnit\Runner\PhptTestCase;
use 
ReflectionClass;
use 
ReflectionException;
use 
ReflectionMethod;

/**
 * @psalm-immutable
 *
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
 */
abstract class TestSuite
{
    private readonly 
string $name;
    private readonly 
int $count;
    private readonly 
TestCollection $tests;

    
/**
     * @throws RuntimeException
     */
    
public static function fromTestSuite(FrameworkTestSuite $testSuite): self
    
{
        
$groups = [];

        foreach (
$testSuite->getGroupDetails() as $groupName => $tests) {
            if (!isset(
$groups[$groupName])) {
                
$groups[$groupName] = [];
            }

            foreach (
$tests as $test) {
                
$groups[$groupName][] = $test::class;
            }
        }

        
$tests = [];

        foreach (
$testSuite->tests() as $test) {
            if (
$test instanceof TestCase || $test instanceof PhptTestCase) {
                
$tests[] = $test->valueObjectForEvents();
            }
        }

        if (
$testSuite instanceof DataProviderTestSuite) {
            [
$className$methodName] = explode('::'$testSuite->getName());

            try {
                
$reflector = new ReflectionMethod($className$methodName);

                return new 
TestSuiteForTestMethodWithDataProvider(
                    
$testSuite->getName(),
                    
$testSuite->count(),
                    
TestCollection::fromArray($tests),
                    
$className,
                    
$methodName,
                    
$reflector->getFileName(),
                    
$reflector->getStartLine(),
                );
                
// @codeCoverageIgnoreStart
            
} catch (ReflectionException $e) {
                throw new 
RuntimeException(
                    
$e->getMessage(),
                    
$e->getCode(),
                    
$e
                
);
            }
            
// @codeCoverageIgnoreEnd
        
}

        if (
$testSuite->isForTestClass()) {
            try {
                
$reflector = new ReflectionClass($testSuite->getName());

                return new 
TestSuiteForTestClass(
                    
$testSuite->getName(),
                    
$testSuite->count(),
                    
TestCollection::fromArray($tests),
                    
$reflector->getFileName(),
                    
$reflector->getStartLine(),
                );
                
// @codeCoverageIgnoreStart
            
} catch (ReflectionException $e) {
                throw new 
RuntimeException(
                    
$e->getMessage(),
                    
$e->getCode(),
                    
$e
                
);
            }
            
// @codeCoverageIgnoreEnd
        
}

        return new 
TestSuiteWithName(
            
$testSuite->getName(),
            
$testSuite->count(),
            
TestCollection::fromArray($tests),
        );
    }

    public function 
__construct(string $nameint $sizeTestCollection $tests)
    {
        
$this->name  $name;
        
$this->count $size;
        
$this->tests $tests;
    }

    public function 
name(): string
    
{
        return 
$this->name;
    }

    public function 
count(): int
    
{
        return 
$this->count;
    }

    public function 
tests(): TestCollection
    
{
        return 
$this->tests;
    }

    
/**
     * @psalm-assert-if-true TestSuiteWithName $this
     */
    
public function isWithName(): bool
    
{
        return 
false;
    }

    
/**
     * @psalm-assert-if-true TestSuiteForTestClass $this
     */
    
public function isForTestClass(): bool
    
{
        return 
false;
    }

    
/**
     * @psalm-assert-if-true TestSuiteForTestMethodWithDataProvider $this
     */
    
public function isForTestMethodWithDataProvider(): bool
    
{
        return 
false;
    }
}

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