Skip to content

Commit 9466683

Browse files
committed
PHPC-654: Regression tests for MaxKey and MinKey comparisons
1 parent 70d7186 commit 9466683

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
MongoDB\BSON\MaxKey comparisons
3+
--FILE--
4+
<?php
5+
6+
var_dump(new MongoDB\BSON\MaxKey == new MongoDB\BSON\MaxKey);
7+
var_dump(new MongoDB\BSON\MaxKey < new MongoDB\BSON\MaxKey);
8+
var_dump(new MongoDB\BSON\MaxKey > new MongoDB\BSON\MaxKey);
9+
10+
?>
11+
===DONE===
12+
<?php exit(0); ?>
13+
--EXPECTF--
14+
bool(true)
15+
bool(false)
16+
bool(false)
17+
===DONE===
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
MongoDB\BSON\MinKey comparisons
3+
--FILE--
4+
<?php
5+
6+
var_dump(new MongoDB\BSON\MinKey == new MongoDB\BSON\MinKey);
7+
var_dump(new MongoDB\BSON\MinKey < new MongoDB\BSON\MinKey);
8+
var_dump(new MongoDB\BSON\MinKey > new MongoDB\BSON\MinKey);
9+
10+
?>
11+
===DONE===
12+
<?php exit(0); ?>
13+
--EXPECTF--
14+
bool(true)
15+
bool(false)
16+
bool(false)
17+
===DONE===

0 commit comments

Comments
 (0)