Skip to content

Commit 7640102

Browse files
committed
Added test
1 parent b195f12 commit 7640102

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--TEST--
2+
BSON BSON\UTCDateTime::toDateTime()
3+
--INI--
4+
date.timezone=America/Los_Angeles
5+
--SKIPIF--
6+
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
7+
--FILE--
8+
<?php
9+
use MongoDB\BSON as BSON;
10+
11+
require_once __DIR__ . "/../utils/basic.inc";
12+
13+
$utcdatetime = new BSON\UTCDateTime("1416445411987");
14+
$datetime = $utcdatetime->toDateTime();
15+
var_dump($datetime->format("u"));
16+
17+
?>
18+
===DONE===
19+
<?php exit(0); ?>
20+
--EXPECTF--
21+
string(6) "987000"
22+
===DONE===

0 commit comments

Comments
 (0)