summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2016-02-26 05:25:31 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2016-02-26 05:25:31 +0100
commit9bf1955de30f9755cc7f2b32353b718df7d1267f (patch)
tree9fedb9755d2d040e69e2e17c8f9ed26aebe85fd1
parent521dcda8d6dfcf98fe3634febfac34913c1e1d33 (diff)
parente60cd45574d356e81ad32b1295ac2aa9e9feda06 (diff)
downloadsymfony-security-9bf1955de30f9755cc7f2b32353b718df7d1267f.zip
symfony-security-9bf1955de30f9755cc7f2b32353b718df7d1267f.tar.gz
symfony-security-9bf1955de30f9755cc7f2b32353b718df7d1267f.tar.bz2
Merge branch '2.8' into 3.0
* 2.8: [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.php31
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')
+ );
+ }
+}