!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/dokan/script/vendor/moneyphp/money/src/PHPUnit/   drwxrwxrwx
Free 13.21 GB of 57.97 GB (22.8%)
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.84 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Money\PHPUnit;

use 
Money\Currencies\AggregateCurrencies;
use 
Money\Currencies\BitcoinCurrencies;
use 
Money\Currencies\ISOCurrencies;
use 
Money\Formatter\IntlMoneyFormatter;
use 
Money\Money;
use 
SebastianBergmann\Comparator\ComparisonFailure;

/**
 * The comparator is for comparing Money objects in PHPUnit tests.
 *
 * Add this to your bootstrap file:
 *
 * \SebastianBergmann\Comparator\Factory::getInstance()->register(new \Money\PHPUnit\Comparator());
 */
final class Comparator extends \SebastianBergmann\Comparator\Comparator
{
    
/**
     * @var IntlMoneyFormatter
     */
    
private $formatter;

    public function 
__construct()
    {
        
parent::__construct();

        
$currencies = new AggregateCurrencies([
            new 
ISOCurrencies(),
            new 
BitcoinCurrencies(),
        ]);

        
$numberFormatter = new \NumberFormatter('en_US'\NumberFormatter::CURRENCY);
        
$this->formatter = new IntlMoneyFormatter($numberFormatter$currencies);
    }

    public function 
accepts($expected$actual)
    {
        return 
$expected instanceof Money && $actual instanceof Money;
    }

    
/**
     * @param Money $expected
     * @param Money $actual
     * @param float $delta
     * @param bool  $canonicalize
     * @param bool  $ignoreCase
     * @param array $processed
     */
    
public function assertEquals(
        
$expected,
        
$actual,
        
$delta 0.0,
        
$canonicalize false,
        
$ignoreCase false,
        array &
$processed = []
    ) {
        if (!
$expected->equals($actual)) {
            throw new 
ComparisonFailure(
                
$expected,
                
$actual,
                
$this->formatter->format($expected),
                
$this->formatter->format($actual),
                
false,
                
'Failed asserting that two Money objects are equal.'
            
);
        }
    }
}

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