浏览代码

add DateTimeZone UTC to DateTime calls in FiltersTest

steve 11 年之前
父节点
当前提交
be19ebf5b2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/Mustache/Test/FiveThree/Functional/FiltersTest.php

+ 2 - 2
test/Mustache/Test/FiveThree/Functional/FiltersTest.php

@@ -46,7 +46,7 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
             array(
                 '{{% FILTERS }}{{ date | longdate }}',
                 $helpers,
-                (object) array('date' => new DateTime('1/1/2000')),
+                (object) array('date' => new DateTime('1/1/2000', new DateTimeZone("UTC"))),
                 '2000-01-01 12:01:00'
             ),
 
@@ -72,7 +72,7 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
         });
 
         $foo = new \StdClass;
-        $foo->date = new DateTime('1/1/2000');
+        $foo->date = new DateTime('1/1/2000', new DateTimeZone("UTC"));
 
         $this->assertEquals('[[2000-01-01 12:01:00]]', $tpl->render($foo));
     }