diff options
author | xue <> | 2006-03-31 22:52:19 +0000 |
---|---|---|
committer | xue <> | 2006-03-31 22:52:19 +0000 |
commit | 0090de89b8b23069c1dd71801389dfa063e610b4 (patch) | |
tree | 104d543ad13dd834e322709a09c7f5027520611c /tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php | |
parent | 2658b6a09c9071e524867e13da8c5ec34541cd2d (diff) |
Fixed a few errors caused by incorrect path to cache classes.
Diffstat (limited to 'tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php')
-rw-r--r-- | tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php b/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php index b186e3ff..9c505481 100644 --- a/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php +++ b/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php @@ -3,7 +3,7 @@ // NOTE: This file must be saved with charset GB2312
require_once(dirname(__FILE__).'/../common.php');
-Prado::using('System.Data.TDateTimeSimpleFormatter');
+Prado::using('System.Util.TDateTimeSimpleFormatter');
class utDateTimeSimpleFormatter extends UnitTestCase
{
@@ -12,7 +12,7 @@ class utDateTimeSimpleFormatter extends UnitTestCase $time = mktime(0,0,0,12,30,2005);
$pattern = "dd-MM-yyyy";
$expect = '30-12-2005';
-
+
$formatter = new TDateTimeSimpleFormatter($pattern);
$this->assertEqual($expect, $formatter->format($time));
@@ -31,13 +31,13 @@ class utDateTimeSimpleFormatter extends UnitTestCase $pattern = "yyyy年MM月dd日";
$expect = "2005年05月06日";
-
+
$formatter = new TDateTimeSimpleFormatter($pattern, 'GB2312');
$this->assertEqual($expect, $formatter->format($time));
$pattern = "MM/dd/yyyy";
$expect = "05/06/2005";
-
+
$formatter = new TDateTimeSimpleFormatter($pattern, 'UTF-8');
$this->assertEqual($expect, $formatter->format($time));
@@ -54,7 +54,7 @@ class utDateTimeSimpleFormatter extends UnitTestCase $pattern = "dd-MM-yy";
$value= "06-05-05";
-
+
$formatter = new TDateTimeSimpleFormatter($pattern);
$this->assertEqual($expect, $formatter->parse($value));
|