Skip to content

Commit 96eac6d

Browse files
committed
Simplify test
1 parent f98dc4a commit 96eac6d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/bson/bug0592.phpt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ $tests = [
2222

2323
foreach ($tests as $json) {
2424
printf("Test %s\n", $json);
25-
try {
26-
$encoded = MongoDB\BSON\Document::fromJSON($json)->toPHP();
27-
var_dump($encoded);
28-
} catch ( MongoDB\Driver\Exception\InvalidArgumentException $e ) {
29-
echo "MongoDB\Driver\Exception\InvalidArgumentException: ", $e->getMessage(), "\n";
30-
}
25+
var_dump(MongoDB\BSON\Document::fromJSON($json)->toPHP());
3126
echo "\n";
3227
}
3328

0 commit comments

Comments
 (0)