com php-src: Fixed test: ext/intl/tests/bug75378.phpt
| From: | Xinchen Hui | Date: | Tue, 17 Oct 2017 04:20:43 +0000 |
| Subject: | com php-src: Fixed test: ext/intl/tests/bug75378.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99772@lists.php.net to get a copy of this message | ||
Commit: 02924562622f62208257a2f4ea76d3f4be82c82a
Author: Xinchen Hui <laruence@gmail.com> Tue, 17 Oct 2017 12:20:25 +0800
Parents: 2f73f2436a968833d06067ad5fd1d2f17e0927b5
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=02924562622f62208257a2f4ea76d3f4be82c82a
Log:
Fixed test
Changed paths:
M ext/intl/tests/bug75378.phpt
Diff:
diff --git a/ext/intl/tests/bug75378.phpt b/ext/intl/tests/bug75378.phpt
index c3909ce..48d9f6f 100644
--- a/ext/intl/tests/bug75378.phpt
+++ b/ext/intl/tests/bug75378.phpt
@@ -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)