diff --git a/test/ztf/conf/zdata.conf b/test/ztf/conf/zdata.conf index 9931f35c5a693ee24205c9113d837070b6afaea1..43cfb3ae0ae38760a250b2877aa4443ee34f2bd5 100644 --- a/test/ztf/conf/zdata.conf +++ b/test/ztf/conf/zdata.conf @@ -1,2 +1,2 @@ Version = 1 -Language = zh \ No newline at end of file +Language = en \ No newline at end of file diff --git a/test/ztf/script/command/cmd_example.exp b/test/ztf/script/command/cmd_example.exp index 7b5f9e6d6505b67f089eedf06c4196d4830ca8c9..bf103b1ddb2fe3db8deda628b70a611685278e39 100644 --- a/test/ztf/script/command/cmd_example.exp +++ b/test/ztf/script/command/cmd_example.exp @@ -1,4 +1,2 @@ >> zendata config ->> zendata config ->> zendata数据 ->> zendata数据 \ No newline at end of file +>> zendata config \ No newline at end of file diff --git a/test/ztf/script/command/cmd_example.php b/test/ztf/script/command/cmd_example.php index eaa779a29147c85a48351200a70c0c9dc728f99f..0a8519f66b66a098b2fd49fa58ae5792e75651df 100755 --- a/test/ztf/script/command/cmd_example.php +++ b/test/ztf/script/command/cmd_example.php @@ -9,8 +9,6 @@ pid=0 [group] >> >> - >> - >> [esac] */ @@ -21,13 +19,6 @@ $zd = new zendata(); $zd->changeLang("en"); -$output = $zd->cmd("-e"); -print(">> $output[0]\n"); -$output = $zd->cmd("-example"); -print(">> $output[0]\n"); - -$zd->changeLang("zh"); - $output = $zd->cmd("-e"); print(">> $output[0]\n"); $output = $zd->cmd("-example"); diff --git a/test/ztf/script/command/cmd_i118.exp b/test/ztf/script/command/cmd_i118.exp new file mode 100644 index 0000000000000000000000000000000000000000..6be113cc87d99b4ca78ace61d872001bb63d08a2 --- /dev/null +++ b/test/ztf/script/command/cmd_i118.exp @@ -0,0 +1,4 @@ +>> `ZenData is %s` +>> zendata config +>> ZenData是一款 +>> zendata数据 \ No newline at end of file diff --git a/test/ztf/script/command/cmd_i118.php b/test/ztf/script/command/cmd_i118.php new file mode 100755 index 0000000000000000000000000000000000000000..b8cb9d1fb262b537d0ecbb53b9e4602efe9a347b --- /dev/null +++ b/test/ztf/script/command/cmd_i118.php @@ -0,0 +1,36 @@ +#!/usr/bin/env php +> + >> + >> + >> + +[esac] +*/ + +include_once __DIR__ . DIRECTORY_SEPARATOR . '../common/zd.php'; + +$zd = new zendata(); + +$zd->changeLang("en"); + +$output = $zd->cmd("-help"); +print(">> $output[0]\n"); +$output = $zd->cmd("-example"); +print(">> $output[0]\n"); + +$zd->changeLang("zh"); + +$output = $zd->cmd("-help"); +print(">> $output[0]\n"); +$output = $zd->cmd("-example"); +print(">> $output[0]\n"); + +$zd->changeLang("en"); \ No newline at end of file diff --git a/test/ztf/script/command/cmd_usage.exp b/test/ztf/script/command/cmd_usage.exp index 7958c438317f09a9ff4e176572a6bb663a2affde..d087e8f67267afc089589178f9f0284822aa0c3f 100644 --- a/test/ztf/script/command/cmd_usage.exp +++ b/test/ztf/script/command/cmd_usage.exp @@ -1,6 +1,3 @@ >> `ZenData is %s` >> `ZenData is %s` ->> `ZenData is %s` ->> ZenData是一款 ->> ZenData是一款 ->> ZenData是一款 \ No newline at end of file +>> `ZenData is %s` \ No newline at end of file diff --git a/test/ztf/script/command/cmd_usage.php b/test/ztf/script/command/cmd_usage.php index b0b37b927bcce4497e0858fefdd843c35a6567b3..397f49e87aec4586fd35132bbad97118b9d2ea7c 100755 --- a/test/ztf/script/command/cmd_usage.php +++ b/test/ztf/script/command/cmd_usage.php @@ -10,9 +10,6 @@ pid=0 >> >> >> - >> - >> - >> [esac] */ @@ -23,15 +20,6 @@ $zd = new zendata(); $zd->changeLang("en"); -$output = $zd->cmd(""); -print(">> $output[0]\n"); -$output = $zd->cmd("-h"); -print(">> $output[0]\n"); -$output = $zd->cmd("-help"); -print(">> $output[0]\n"); - -$zd->changeLang("zh"); - $output = $zd->cmd(""); print(">> $output[0]\n"); $output = $zd->cmd("-h");