<?php
/**
 * Orange Management
 *
 * PHP Version 7.2
 *
 * @package    TBD
 * @copyright  Dennis Eichhorn
 * @license    OMS License 1.0
 * @version    1.0.0
 * @link       http://website.orange-management.de
 */

namespace phpOMS\tests\Validation\Finance;

use phpOMS\Validation\Finance\IbanEnum;

class IbanEnumTest extends \PHPUnit\Framework\TestCase
{
    public function testEnums()
    {
        $enums = IbanEnum::getConstants();
        $ok    = true;

        foreach ($enums as $enum) {
            $temp = \substr($enum, 2);

            if (\preg_match('/[^kbsxcinm0at\ ]/', $temp) === 1) {
                $ok = false;

                break;
            }
        }

        self::assertTrue($ok);
    }
}
