incubator-zeta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [zeta-commits] svn commit: r1062536 - /incubator/zetacomponents/trunk/Template/tests/locale_test.php
Date Sun, 23 Jan 2011 21:51:12 GMT
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";



Mime
View raw message