瀏覽代碼

[Locale] add some more test cases with escaping

Igor Wiedler 14 年之前
父節點
當前提交
85e6c5e426
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tests/Symfony/Tests/Component/Locale/Stub/StubIntlDateFormatterTest.php

+ 4 - 0
tests/Symfony/Tests/Component/Locale/Stub/StubIntlDateFormatterTest.php

@@ -22,6 +22,10 @@ class StubIntlDateFormatterTest extends \PHPUnit_Framework_TestCase
             /* general */
             array('y-M-d', 0, '1970-1-1'),
             array("yyyy.MM.dd G 'at' HH:mm:ss zzz", 0, '1970.01.01 AD at 00:00:00 GMT+00:00'),
+            array("EEE, MMM d, ''yy", 0, "Thu, Jan 1, '00"),
+            array('h:mm a', 0, '12:00 AM'),
+            array('K:mm a, z', 0, '0:00 AM, GMT+00:00'),
+            array('yyyyy.MMMM.dd GGG hh:mm aaa', 0, '01970.January.01 AD 12:00 AM'),
 
             /* escaping */
             array("'M'", 0, 'M'),