diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2016-02-26 05:26:33 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2016-02-26 05:26:33 +0100 |
commit | 9b005390ddc8a23b6ecb67c61f0856d16955bc11 (patch) | |
tree | a3d208d9b4e750b702e1b2a01c942563fc3641fc | |
parent | cb04466e11f94c0c2211f0a6071fe8dcbc0da71d (diff) | |
parent | 9bf1955de30f9755cc7f2b32353b718df7d1267f (diff) | |
download | symfony-security-9b005390ddc8a23b6ecb67c61f0856d16955bc11.zip symfony-security-9b005390ddc8a23b6ecb67c61f0856d16955bc11.tar.gz symfony-security-9b005390ddc8a23b6ecb67c61f0856d16955bc11.tar.bz2 |
Merge branch '3.0'
* 3.0:
[3.0] [Tests] minor fix following #17787
[2.8] [Form] minor fix some tests with placeholder in AbstractLayout
[DependencyInjection] fix tests
Validate XLIFF translation files
[DependencyInjection] replace alias in factories
replace alias in factory services
-rw-r--r-- | Tests/Resources/TranslationFilesTest.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Tests/Resources/TranslationFilesTest.php b/Tests/Resources/TranslationFilesTest.php new file mode 100644 index 0000000..341ec87 --- /dev/null +++ b/Tests/Resources/TranslationFilesTest.php @@ -0,0 +1,31 @@ +<?php + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien@symfony.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Security\Tests\Resources; + +class TranslationFilesTest extends \PHPUnit_Framework_TestCase +{ + /** + * @dataProvider provideTranslationFiles + */ + public function testTranslationFileIsValid($filePath) + { + \PHPUnit_Util_XML::loadfile($filePath, false, false, true); + } + + public function provideTranslationFiles() + { + return array_map( + function ($filePath) { return (array) $filePath; }, + glob(dirname(dirname(__DIR__)).'/Resources/translations/*.xlf') + ); + } +} |