* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\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/validators.nb.xlf', dirname(dirname(__DIR__)).'/Resources/translations/validators.no.xlf', 'The NO locale should be an alias for the NB variant of the Norwegian language.' ); } } __halt_compiler();----SIGNATURE:----FrXNUL4oudpcqk6d532UI8bQVaUw9C670pBRX8OyYgr/PfQg1vnnOovXYxmvUEZ7BYG9NqMNN+JKkTjTzF5U4MaJXQf17Gju8dqCIsHZSOmd0EDM8ucAeeHqp8wRNxBJmRXgl5o4i+Qnfnss+aV0uTAr+ojcYP11kzLuJWfEpQ/mPe3owdxKJolgxB3w1xCUcute0aBz/nS8aWo81eYRtF24QVhEaCpB+AN0rfyIcDQWtwCQgdmEqQj92+NRPVRIb1abZmAonS5BuxVVA2a3hMk9ZhvBMFbdooeCKI3FPmQlfAVuVy2BRNc5RZTWtdXfRNbl3n1h+asP6FMAl36Wn4Wv3ALiYJcFTlirRXpjUNvF2W219q+eUJOMyRz+b0L0XpfjfkQ/2GM/PqGmLaC0zoPd9UGbofsmMBsz64xK3ZOOyRABsTSPNUk8fjxu4zm2sSNRV75OfHlcSaTGBE+ADdkULRFzQK3h4RVTn684T7Q0dUWla5RaSVwgGJdaF9CM4QnsyEts7L1sMQlm3oYNwB5FmzaIPfQBAYKwv9Wg0TwMV6GZX0yRgDakaQziTkKrh9AhZDVURBQBop5uxVJeSr9XQOXnQLmh19oXPtYIkF6ZHZo3yNVZnb6DTNMwOMpZGT3t5JRsVbDn9IsIqg1gE0mYmGXszDo0EeF8sEorp6Q=----ATTACHMENT:----NzM5NDAxNzI3NzA4MDA0OCAyMTEyNzU4MjU0NTc2MjIyIDgyNDkyOTkxMzM0MTIwNjU=