- Fixed #ZETACOMP-42: Skip ezcTemplateLocaleTest if setting locale is not
  supported.


git-svn-id: https://svn.apache.org/repos/asf/incubator/zetacomponents/trunk@1062536 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/Template/tests/locale_test.php b/Template/tests/locale_test.php
index 3c2984d..1ff8851 100644
--- a/Template/tests/locale_test.php
+++ b/Template/tests/locale_test.php
@@ -38,6 +38,16 @@
 
     protected function setUp()
     {
+
+        try
+        {
+            $this->setLocale( LC_ALL, 'de_DE', 'de_DE.UTF-8', 'deu', 'german' );
+        }
+        catch ( PHPUnit_Framework_Exception $e )
+        {
+            $this->markTestSkipped( 'System does not support setting locale to de_DE.UTF-8.' );
+        }
+
         $this->basePath = $this->createTempDir( "ezcTemplate_" );
         $this->templatePath = $this->basePath . "/templates";
         $this->compilePath = $this->basePath . "/compiled";