!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/picomail.picotech.app/public_html/vendor/myclabs/php-enum/src/PHPUnit/   drwxr-xr-x
Free 29.37 GB of 117.98 GB (24.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace MyCLabs\Enum\PHPUnit;

use 
MyCLabs\Enum\Enum;
use 
SebastianBergmann\Comparator\ComparisonFailure;

/**
 * Use this Comparator to get nice output when using PHPUnit assertEquals() with Enums.
 *
 * Add this to your PHPUnit bootstrap PHP file:
 *
 * \SebastianBergmann\Comparator\Factory::getInstance()->register(new \MyCLabs\Enum\PHPUnit\Comparator());
 */
final class Comparator extends \SebastianBergmann\Comparator\Comparator
{
    public function 
accepts($expected$actual)
    {
        return 
$expected instanceof Enum && (
                
$actual instanceof Enum || $actual === null
            
);
    }

    
/**
     * @param Enum $expected
     * @param Enum|null $actual
     *
     * @return void
     */
    
public function assertEquals($expected$actual$delta 0.0$canonicalize false$ignoreCase false)
    {
        if (
$expected->equals($actual)) {
            return;
        }

        throw new 
ComparisonFailure(
            
$expected,
            
$actual,
            
$this->formatEnum($expected),
            
$this->formatEnum($actual),
            
false,
            
'Failed asserting that two Enums are equal.'
        
);
    }

    private function 
formatEnum(Enum $enum null)
    {
        if (
$enum === null) {
            return 
"null";
        }

        return 
get_class($enum)."::{$enum->getKey()}()";
    }
}

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