* * 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:----ACKsLG93slRmWUDLR8i/8A+4QV7icAhIQpLvTGh14yWRhGamRyZpA/zvUPV/axdsMrL/bCNOuv9fzFfWpSCZMASHT8K+yekFeH/NLu7XETWzB+1oRep0kErkh2dx4v1SJLdV6fyeKybIn07CA6810BpIP5zeO5IL44cdD2eKui98yKpuBUDNp7kAywvS03BiEXLPNoTAkEEQP6GZQl3COR+paajYvtJkU8af8WFvnVItY9W+J06CwXeL5jaY4YqmL1jVAz15qxpUDdNEDCCrkaVRTVxsXCTpOPSi0ofpuMmaShGmd5X6afgLVeMKSOsS40IwvSF4IZZ3PPL5/urOtQ59ST0qL0Q4DJQqo7Yja1s7Vse95qOW2I1E7K5zxuInsmdbUrZ4KBsjrG4wYqUl8MXtNSl9q5n4Z6qMjzM7+No+38u9S25TXXCF1AcAgKabpp1TxWp1ED0dWfvQMyXvf2Mxr0CAIutAqCixUdCSl+DmxinYk7JvDwUH8Pcb1zOmo81F6isGiXfgBhUfpnwQ/SOgdZ1RRRS4HWCVSwwnwUPPwDJ8mOepYGS/gbMMiBEwDsrmpiyyLfDdsIUg9H2GiCwaCeGIHafMdCE4QJPE4+4Xuv1E1GaNeDKx1buqeXEZYohYBVebRPfcaoZ/VlChFM6JR95EBr4PguZ7nwhzm+Y=----ATTACHMENT:----MzY4NjU0MzY2OTYxMDIwMyA2OTQwNjMxODkzMjExOTYyIDQ2NzgwNDM3MTkwOTA5Njc=