mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
46 lines
808 B
PHP
46 lines
808 B
PHP
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Localization;
|
|
|
|
require_once __DIR__ . '/../Autoloader.php';
|
|
|
|
use phpOMS\Localization\ISO4217SubUnitEnum;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class ISO4217SubUnitEnumTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @group framework
|
|
* @coversNothing
|
|
*/
|
|
public function testEnums() : void
|
|
{
|
|
$ok = true;
|
|
|
|
$enum = ISO4217SubUnitEnum::getConstants();
|
|
|
|
foreach ($enum as $code) {
|
|
if ($code < 0 || $code > 1000) {
|
|
$ok = false;
|
|
break;
|
|
}
|
|
}
|
|
|
|
self::assertTrue($ok);
|
|
}
|
|
}
|