* @copyright 2011-2024 Nicola Asuni - Tecnick.com LTD * @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT) * @link https://github.com/tecnickcom/tc-lib-unicode-data * * This file is part of tc-lib-unicode-data software library. */ namespace Test; use PHPUnit\Framework\TestCase; /** * Encoding Test * * @since 2011-05-23 * @category Library * @package UnicodeData * @author Nicola Asuni * @copyright 2011-2024 Nicola Asuni - Tecnick.com LTD * @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT) * @link https://github.com/tecnickcom/tc-lib-unicode-data */ class EncodingTest extends TestCase { public function testMap(): void { $this->assertEquals(22, count(\Com\Tecnick\Unicode\Data\Encoding::MAP)); $this->assertEquals(256, count(\Com\Tecnick\Unicode\Data\Encoding::MAP['iso-8859-1'])); } }