Преглед на файлове

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));
     }