!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/pestphp/pest-plugin-arch/src/   drwxr-xr-x
Free 29.17 GB of 117.98 GB (24.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SingleArchExpectation.php (4.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Pest\Arch;

use 
Closure;
use 
Pest\Arch\Options\LayerOptions;
use 
Pest\Arch\Support\UserDefinedFunctions;
use 
Pest\Expectation;
use 
Pest\TestSuite;
use 
PHPUnit\Architecture\Elements\ObjectDescription;
use 
PHPUnit\Framework\AssertionFailedError;
use 
PHPUnit\Framework\ExpectationFailedException;
use 
PHPUnit\Framework\TestCase;

/**
 * @internal
 *
 * @mixin Expectation<array|string>
 */
final class SingleArchExpectation implements Contracts\ArchExpectation
{
    
/**
     * The "opposite" callback.
     */
    
private ?Closure $opposite null;

    
/**
     * Whether the expectation has been verified.
     */
    
private bool $lazyExpectationVerified false;

    
/**
     * The ignored list of layers.
     *
     * @var array<int, string>
     */
    
public array $ignoring = [];

    
/**
     * The ignored list of layers.
     *
     * @var array<int, callable(ObjectDescription): bool>
     */
    
private array $excludeCallbacks = [];

    
/**
     * Creates a new Arch Expectation instance.
     */
    
private function __construct(private readonly Expectation $expectation, private readonly Closure $lazyExpectation)
    {
        
// ...
    
}

    
/**
     * {@inheritDoc}
     */
    
public function ignoring(array|string $targetsOrDependencies): self
    
{
        
$targetsOrDependencies is_array($targetsOrDependencies) ? $targetsOrDependencies : [$targetsOrDependencies];

        
$this->ignoring array_unique([...$this->ignoring, ...$targetsOrDependencies]);

        return 
$this;
    }

    
/**
     * {@inheritDoc}
     */
    
public function ignoringGlobalFunctions(): self
    
{
        return 
$this->ignoring(UserDefinedFunctions::get());
    }

    
/**
     * Sets the "opposite" callback.
     */
    
public function opposite(Closure $callback): self
    
{
        
$this->opposite $callback;

        return 
$this;
    }

    
/**
     * Creates a new Arch Expectation instance from the given expectation.
     */
    
public static function fromExpectation(Expectation $expectationClosure $lazyExpectation): self
    
{
        return new 
self($expectation$lazyExpectation);
    }

    
/**
     * Proxies the call to the expectation.
     *
     * @param  array<array-key, mixed>  $arguments
     * @return Expectation<string>
     */
    
public function __call(string $name, array $arguments): mixed
    
{
        
$this->ensureLazyExpectationIsVerified();

        return 
$this->expectation->$name(...$arguments); // @phpstan-ignore-line
    
}

    
/**
     * Proxies the call to the expectation.
     *
     * @return Expectation<string>
     */
    
public function __get(string $name): mixed
    
{
        
$this->ensureLazyExpectationIsVerified();

        return 
$this->expectation->$name// @phpstan-ignore-line
    
}

    
/**
     * {@inheritDoc}
     */
    
public function mergeExcludeCallbacks(array $callbacks): void
    
{
        
$this->excludeCallbacks = [...$this->excludeCallbacks, ...$callbacks];
    }

    
/**
     * {@inheritDoc}
     */
    
public function excludeCallbacks(): array
    {
        return 
$this->excludeCallbacks;
    }

    
/**
     * Ensures the lazy expectation is verified when the object is destructed.
     */
    
public function __destruct()
    {
        
$this->ensureLazyExpectationIsVerified();
    }

    
/**
     * Ensures the lazy expectation is verified.
     */
    
public function ensureLazyExpectationIsVerified(): void
    
{
        if (
TestSuite::getInstance()->test instanceof TestCase && ! $this->lazyExpectationVerified) {
            
$this->lazyExpectationVerified true;

            
$e null;

            
$options LayerOptions::fromExpectation($this);

            try {
                (
$this->lazyExpectation)($options);
            } catch (
ExpectationFailedException|AssertionFailedError $e) {
                if (! 
$this->opposite instanceof \Closure) {
                    throw 
$e;
                }
            }

            if (! 
$this->opposite instanceof Closure) {
                return;
            }
            if (! 
is_null($e)) {
                return;
            }

            (
$this->opposite)(); // @phpstan-ignore-line
        
}
    }
}

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