File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/common/tests/Omnipay/Common/CurrencyTest.php
Back
<?php namespace Omnipay\Common; use Omnipay\Common\Currency; use Omnipay\Tests\TestCase; class CurrencyTest extends TestCase { public function testFind() { $currency = Currency::find('USD'); $this->assertSame('USD', $currency->getCode()); $this->assertSame('840', $currency->getNumeric()); $this->assertSame(2, $currency->getDecimals()); } public function testFindLowercase() { $currency = Currency::find('usd'); $this->assertSame('USD', $currency->getCode()); $this->assertSame('840', $currency->getNumeric()); $this->assertSame(2, $currency->getDecimals()); } public function testUnknownCurrencyReturnsNull() { $currency = Currency::find('XYZ'); $this->assertNull($currency); } public function testAll() { $currencies = Currency::all(); $this->assertTrue(isset($currencies['USD'])); $this->assertFalse(isset($currencies['XYZ'])); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings