Skip to content

Commit 4a274d3

Browse files
committed
Improve code coverage
1 parent c21eb74 commit 4a274d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/bson/bson-objectid-001.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ throws(function() {
5656
$id = new BSON\ObjectID(new stdclass);
5757
}, "InvalidArgumentException");
5858

59+
60+
61+
raises(function() use($pregenerated) {
62+
$pregenerated->__toString(1);
63+
}, E_WARNING);
5964
?>
6065
===DONE===
6166
<?php exit(0); ?>
@@ -85,4 +90,5 @@ OK: Got InvalidArgumentException
8590
OK: Got InvalidArgumentException
8691
OK: Got InvalidArgumentException
8792
OK: Got InvalidArgumentException
93+
OK: Got E_WARNING
8894
===DONE===

0 commit comments

Comments
 (0)