Skip to content

Commit 8edd0c9

Browse files
committed
Do not assert error message in fromJSON() error test
libbson 1.6.0 switched JSON parsers, which means this test fails when compiled against libbson 1.6.0 as a system library. Removing the error message assertion keeps the test portable.
1 parent e3c4439 commit 8edd0c9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/bson/bson-fromJSON_error-001.phpt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ MongoDB\BSON\fromJSON(): invalid JSON
55

66
require_once __DIR__ . '/../utils/tools.php';
77

8-
echo throws(function() {
8+
throws(function() {
99
fromJSON('foo');
10-
}, 'MongoDB\Driver\Exception\UnexpectedValueException'), "\n";
10+
}, 'MongoDB\Driver\Exception\UnexpectedValueException');
1111

1212
?>
1313
===DONE===
1414
<?php exit(0); ?>
1515
--EXPECT--
1616
OK: Got MongoDB\Driver\Exception\UnexpectedValueException
17-
lexical error: invalid string in json text.
18-
foo
19-
(right here) ------^
20-
2117
===DONE===

0 commit comments

Comments
 (0)