1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00
invoiceninja/tests/Unit/ZeroDecimalTest.php
2024-08-22 16:57:52 +10:00

39 lines
916 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace Tests\Unit;
use Tests\TestCase;
class ZeroDecimalTest extends TestCase
{
public array $currencies = ['BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'UGX', 'VND', 'VUV', 'XAF', 'XOF', 'XPF'];
protected function setUp(): void
{
}
public function testCurrencyHit()
{
$this->assertTrue(in_array('KRW', $this->currencies));
}
public function testCurrencyMiss()
{
$this->assertFalse(in_array('USD', $this->currencies));
}
public function testCurrencyNotexist()
{
$this->assertFalse(in_array('USDddd', $this->currencies));
}
}