Skip to content

Commit 7434766

Browse files
committed
Revise comments about bson_iter_init() testing
1 parent b6a5e48 commit 7434766

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

tests/bson/bson-toCanonicalJSON_error-001.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ MongoDB\BSON\toCanonicalJSON(): BSON decoding exceptions
55

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

8-
/* We can't really test for bson_iter_init() failure within
9-
* bson_as_canonical_json(), since bson_reader_read() already checks that the
10-
* buffer is at least 5 bytes. */
8+
/* We can't really test for bson_iter_init() failure within libbson, since
9+
* bson_reader_read() already checks that the buffer is at least 5 bytes. */
1110
$tests = [
1211
'',
1312
str_repeat(fromJSON('{"x": "y"}'), 2),

tests/bson/bson-toJSON_error-001.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ MongoDB\BSON\toJSON(): BSON decoding exceptions
55

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

8-
/* We can't really test for bson_iter_init() failure within bson_as_json(),
9-
* since bson_reader_read() already checks that the buffer is at least 5 bytes.
10-
*/
8+
/* We can't really test for bson_iter_init() failure within libbson, since
9+
* bson_reader_read() already checks that the buffer is at least 5 bytes. */
1110
$tests = [
1211
'',
1312
str_repeat(fromJSON('{"x": "y"}'), 2),

tests/bson/bson-toPHP_error-002.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ MongoDB\BSON\toPHP(): BSON decoding exceptions
55

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

8-
/* We can't really test for bson_iter_init() failure, since bson_reader_read()
9-
* already checks that the buffer is at least 5 bytes.
10-
*/
8+
/* We can't really test for bson_iter_init() failure within libbson, since
9+
* bson_reader_read() already checks that the buffer is at least 5 bytes. */
1110
$invalidBson = array(
1211
'',
1312
str_repeat(fromJSON('{"x": "y"}'), 2),

tests/bson/bson-toRelaxedJSON_error-001.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ MongoDB\BSON\toRelaxedJSON(): BSON decoding exceptions
55

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

8-
/* We can't really test for bson_iter_init() failure within
9-
* bson_as_relaxed_json(), since bson_reader_read() already checks that the
10-
* buffer is at least 5 bytes. */
8+
/* We can't really test for bson_iter_init() failure within libbson, since
9+
* bson_reader_read() already checks that the buffer is at least 5 bytes. */
1110
$tests = [
1211
'',
1312
str_repeat(fromJSON('{"x": "y"}'), 2),

0 commit comments

Comments
 (0)