Skip to content

Commit e497c01

Browse files
committed
PHPC-414: Combine 32-bit and 64-bit UTCDateTime debug handler tests
This removes a SKIPIF from the 32-bit test but leaves the 64-bit test in place, since it tests construction from a 64-bit integer type instead of a string.
1 parent cb30d5d commit e497c01

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/bson/bson-utcdatetime-002.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
--TEST--
2-
BSON BSON\UTCDateTime debug handler (32-bit)
2+
BSON BSON\UTCDateTime debug handler
33
--SKIPIF--
4-
<?php if (4 !== PHP_INT_SIZE) { die('skip Only for 32-bit platform'); } ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>
65
--FILE--
76
<?php
@@ -18,6 +17,6 @@ var_dump($utcdatetime);
1817
--EXPECTF--
1918
object(%SBSON\UTCDateTime)#%d (%d) {
2019
["milliseconds"]=>
21-
string(13) "1416445411987"
20+
%rint\(|string\(13\) "|%r1416445411987%r"|\)%r
2221
}
2322
===DONE===

tests/bson/bson-utcdatetime-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
BSON BSON\UTCDateTime debug handler (64-bit)
2+
BSON BSON\UTCDateTime construction from 64-bit integer
33
--SKIPIF--
44
<?php if (8 !== PHP_INT_SIZE) { die('skip Only for 64-bit platform'); } ?>
55
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>

0 commit comments

Comments
 (0)