/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
setup/src/Magento/Setup/Test/Unit/Module/I18n/LocaleTest.php
28 строк
654 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 11:23
22 окт 2025, 11:23
6c2f6e6
Код
Авторство
О чём код?
<?php /** * Copyright 2015 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Setup\Test\Unit\Module\I18n; use Magento\Setup\Module\I18n\Locale; use PHPUnit\Framework\TestCase; class LocaleTest extends TestCase { public function testWrongLocaleFormatException() { $this->expectException('InvalidArgumentException'); $this->expectExceptionMessage('Target locale must match the following format: "aa_AA".'); new Locale('wrong_locale'); } public function testToStringConvert() { $locale = new Locale('de_DE'); $this->assertEquals('de_DE', (string)$locale); } }