We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21eb74 commit 4a274d3Copy full SHA for 4a274d3
tests/bson/bson-objectid-001.phpt
@@ -56,6 +56,11 @@ throws(function() {
56
$id = new BSON\ObjectID(new stdclass);
57
}, "InvalidArgumentException");
58
59
+
60
61
+raises(function() use($pregenerated) {
62
+ $pregenerated->__toString(1);
63
+}, E_WARNING);
64
?>
65
===DONE===
66
<?php exit(0); ?>
@@ -85,4 +90,5 @@ OK: Got InvalidArgumentException
85
90
OK: Got InvalidArgumentException
86
91
87
92
93
+OK: Got E_WARNING
88
94
0 commit comments