You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-commits@incubator.apache.org by to...@apache.org on 2011/01/23 21:51:12 UTC

[zeta-commits] svn commit: r1062536 - /incubator/zetacomponents/trunk/Template/tests/locale_test.php

Author: toby
Date: Sun Jan 23 21:51:12 2011
New Revision: 1062536

URL: http://svn.apache.org/viewvc?rev=1062536&view=rev
Log:
- Fixed #ZETACOMP-42: Skip ezcTemplateLocaleTest if setting locale is not
  supported.

Modified:
    incubator/zetacomponents/trunk/Template/tests/locale_test.php

Modified: incubator/zetacomponents/trunk/Template/tests/locale_test.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/Template/tests/locale_test.php?rev=1062536&r1=1062535&r2=1062536&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/Template/tests/locale_test.php (original)
+++ incubator/zetacomponents/trunk/Template/tests/locale_test.php Sun Jan 23 21:51:12 2011
@@ -38,6 +38,16 @@ class ezcTemplateLocaleTest extends ezcT
 
     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";