Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store/vendor/commerceguys/intl/tests/Currency/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/store/vendor/commerceguys/intl/tests/Currency/CurrencyTest.php

<?php

namespace CommerceGuys\Intl\Tests\Currency;

use CommerceGuys\Intl\Currency\Currency;
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \CommerceGuys\Intl\Currency\Currency
 */
final class CurrencyTest extends TestCase
{
    /**
     * @covers ::__construct
     */
    public function testMissingProperty()
    {
        $this->expectException(\InvalidArgumentException::class);
        $this->expectExceptionMessage('Missing required property "currency_code".');
        $currency = new Currency([]);
    }

    /**
     * @covers ::__construct
     * @covers ::__toString
     * @covers ::getCurrencyCode
     * @covers ::getName
     * @covers ::getNumericCode
     * @covers ::getSymbol
     * @covers ::getFractionDigits
     * @covers ::getLocale
     */
    public function testValid()
    {
        $definition = [
            'currency_code' => 'USD',
            'name' => 'dollar des États-Unis',
            'numeric_code' => '840',
            'symbol' => '$US',
            // Dummy value, intentionally different from the default.
            'fraction_digits' => 3,
            'locale' => 'fr',
        ];
        $currency = new Currency($definition);

        $this->assertEquals($definition['currency_code'], $currency->__toString());
        $this->assertEquals($definition['currency_code'], $currency->getCurrencyCode());
        $this->assertEquals($definition['name'], $currency->getName());
        $this->assertEquals($definition['numeric_code'], $currency->getNumericCode());
        $this->assertEquals($definition['symbol'], $currency->getSymbol());
        $this->assertEquals($definition['fraction_digits'], $currency->getFractionDigits());
        $this->assertEquals($definition['locale'], $currency->getLocale());
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net