* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\Tests\Resources; use PHPUnit\Framework\TestCase; class TranslationFilesTest extends TestCase { /** * @dataProvider provideTranslationFiles */ public function testTranslationFileIsValid($filePath) { if (class_exists('PHPUnit_Util_XML')) { \PHPUnit_Util_XML::loadfile($filePath, false, false, true); } else { \PHPUnit\Util\XML::loadfile($filePath, false, false, true); } $this->addToAssertionCount(1); } public function provideTranslationFiles() { return array_map( function ($filePath) { return (array) $filePath; }, glob(dirname(dirname(__DIR__)).'/Resources/translations/*.xlf') ); } public function testNorwegianAlias() { $this->assertFileEquals( dirname(dirname(__DIR__)).'/Resources/translations/security.nb.xlf', dirname(dirname(__DIR__)).'/Resources/translations/security.no.xlf', 'The NO locale should be an alias for the NB variant of the Norwegian language.' ); } } __halt_compiler();----SIGNATURE:----cwNDGdTDOvYlTe0CA4IMVkYx1eX1IFcuRFRlHiZ/isutrbfkAnSZf4KlzLj6NFNZaCX4QPhyeXDw/yr2Bt1f0VPe+2aldSRyzI93ufT8lZqnuqPBAJ62HpGf5iAdJugr4S5YEQVj0exHSr3n/gEHFVhPJo+115MTN5CmQDuggSYE0FhEpeQck4yb+bJvfORQC0X6XoLBMc535S2jfmbp6ryctVperUxllAl+u1DCjgJ3o5D9GKANFX964CQ0j8Krh8NzUKIePG0rzQZdhswdfaEpjP6T2d5dKP3x7zjCxAKPA6t2BPt8yKLZfLR5/ef7XsdX+FC1SMbRhnyWjxDQJQeffIUkQy0uaWhqtSEzXFRrYvogbWTqpexkPt5i2BW14vBA+8KBG9q1Gz44Tu5fwbsa5SmwBpmDyWGrR0KYm7QN7tWforCX1ljV+ak44UbQ7mn+dKmaiW0Pjjga7Dr4nns52FnW3Hk1e0KuP1VsX8EnXj6XpQUYOmB+TgZ0p0PSDcj0ri7InO/6ngsDVWz4xkqo99rhBj8HuexN5Y0x4EtjicvRB1DvCqnFAC9LEb3LqshlT20mnbcxVDI6keodimdOcGgD9WJcKSHrMH7+M6Wk5BB4hK6naFUGMWmXaLOuaZgkiKB8+Cl9lce3VrY89TTF2TwGfLXDqx/bcQ4nIPM=----ATTACHMENT:----MjA2MjM5ODA2MTMyMzk2NCAxMzk0NDYwODE1NDk5MTgwIDYzNDQwNjMxMDU5NDY0OA==