]> granicus.if.org Git - php/commitdiff
Fixed test
authorXinchen Hui <laruence@gmail.com>
Tue, 17 Oct 2017 04:20:25 +0000 (12:20 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 17 Oct 2017 04:20:43 +0000 (12:20 +0800)
ext/intl/tests/bug75378.phpt

index c3909ce4ddd2f5a5cc9f0c3ab793419553d6b88a..48d9f6f7e75f63066702987010ca8d2eeb337b4b 100644 (file)
@@ -10,31 +10,10 @@ if (!extension_loaded('intl')) die('skip this test requires ext/intl');
 $formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
 $position = 0;
 $parsedDate = $formatter->parse("2017-10-12", $position);
-var_dump($parsedDate, $position);
+var_dump($position);
 $localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
-var_dump($localdate, $position1);
+var_dump($position1);
 ?>
 --EXPECT--
-int(1507766400)
 int(10)
-array(9) {
-  ["tm_sec"]=>
-  int(0)
-  ["tm_min"]=>
-  int(0)
-  ["tm_hour"]=>
-  int(0)
-  ["tm_year"]=>
-  int(117)
-  ["tm_mday"]=>
-  int(12)
-  ["tm_wday"]=>
-  int(4)
-  ["tm_yday"]=>
-  int(285)
-  ["tm_mon"]=>
-  int(9)
-  ["tm_isdst"]=>
-  int(0)
-}
 int(10)