OSDN Git Service

- moved template skel for testing to test/skel/template directory.
authormumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 29 Apr 2009 15:39:27 +0000 (15:39 +0000)
committermumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 29 Apr 2009 15:39:27 +0000 (15:39 +0000)
Idea_Extended_ViewClass/test/Ethna_MockProject.php
Idea_Extended_ViewClass/test/Plugin/Handle/Ethna_Plugin_Handle_I18n_Test.php
Idea_Extended_ViewClass/test/skel/template/skel.template.i18ntest.tpl [new file with mode: 0644]

index 595ddbb..4ec7574 100644 (file)
@@ -10,6 +10,7 @@
 define('ETHNA_TEST_DIR', ETHNA_BASE . '/test');
 define('ETHNA_TEST_PROJECT', 'mockproject');
 define('ETHNA_TEST_SKELDIR', ETHNA_TEST_DIR . '/skel/');
+define('ETHNA_TEST_SKELTPLDIR', ETHNA_TEST_SKELDIR . '/template/');
 
 /**
  *  ethna command, and project Emulator Class. 
index 96d1bb8..cc7514a 100644 (file)
@@ -105,7 +105,7 @@ class Ethna_Plugin_Handle_I18n_Test extends Ethna_UnitTestBase
 
     function test_Template()
     {
-        $skel = ETHNA_TEST_SKELDIR . 'skel.template.i18ntest.tpl';   
+        $skel = ETHNA_TEST_SKELTPLDIR . 'skel.template.i18ntest.tpl';   
         $r = $this->proj->runCmd('add-template',
                           array(
                               '-s', $skel,
diff --git a/Idea_Extended_ViewClass/test/skel/template/skel.template.i18ntest.tpl b/Idea_Extended_ViewClass/test/skel/template/skel.template.i18ntest.tpl
new file mode 100644 (file)
index 0000000..8d18b10
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset={$client_enc}">
+    </head>
+    <body>
+        <h1>{$project_id}</h1>
+        {'template i18n'|i18n}
+        {'template i18n modifier'|upper|i18n}
+        {'template i18n multiple modifier'|lower|upper|i18n}
+    </body>
+</html>