Skip to content

Commit 6929bcb

Browse files
authored
PHPC-1765 and PHPC-1821: DBRef and dot/dollar validation tests (#1225)
Remove tests expecting client-side validation errors for dots/dollars in field names. Syncs BSON corpus tests with mongodb/specifications@a274fbf Bump libmongoc submodule to 1.18-dev
1 parent a612c37 commit 6929bcb

34 files changed

+369
-56
lines changed

src/LIBMONGOC_VERSION_CURRENT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.18.0-20210622+gitebe90917f2
1+
1.18.0-20210622+gitd2617271b8

tests/bson-corpus/binary-parseError-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DO NOT EDIT THIS FILE
77
--FILE--
88
<?php
99

10-
require_once __DIR__ . '/../utils/tools.php';
10+
require_once __DIR__ . '/../utils/basic.inc';
1111

1212
throws(function() {
1313
fromJSON('{"x" : { "$uuid" : { "data" : "73ffd264-44b3-4c69-90e8-e7d1dfc035d4"}}}');

tests/bson-corpus/binary-parseError-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DO NOT EDIT THIS FILE
77
--FILE--
88
<?php
99

10-
require_once __DIR__ . '/../utils/tools.php';
10+
require_once __DIR__ . '/../utils/basic.inc';
1111

1212
throws(function() {
1313
fromJSON('{"x" : { "$uuid" : "73ffd264-44b3-90e8-e7d1dfc035d4"}}');

tests/bson-corpus/binary-parseError-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DO NOT EDIT THIS FILE
77
--FILE--
88
<?php
99

10-
require_once __DIR__ . '/../utils/tools.php';
10+
require_once __DIR__ . '/../utils/basic.inc';
1111

1212
throws(function() {
1313
fromJSON('{"x" : { "$uuid" : "73ffd264-44b3-4c69-90e8-e7d1dfc035d4-789e4"}}');

tests/bson-corpus/binary-parseError-004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DO NOT EDIT THIS FILE
77
--FILE--
88
<?php
99

10-
require_once __DIR__ . '/../utils/tools.php';
10+
require_once __DIR__ . '/../utils/basic.inc';
1111

1212
throws(function() {
1313
fromJSON('{"x" : { "$uuid" : "73ff-d26444b-34c6-990e8e-7d1dfc035d4"}}');

tests/bson-corpus/binary-parseError-005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DO NOT EDIT THIS FILE
77
--FILE--
88
<?php
99

10-
require_once __DIR__ . '/../utils/tools.php';
10+
require_once __DIR__ . '/../utils/basic.inc';
1111

1212
throws(function() {
1313
fromJSON('{"x" : { "$uuid" : "----d264-44b3-4--9-90e8-e7d1dfc0----"}}');

tests/bson-corpus/binary-valid-012.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DO NOT EDIT THIS FILE
77
--FILE--
88
<?php
99

10-
require_once __DIR__ . '/../utils/tools.php';
10+
require_once __DIR__ . '/../utils/basic.inc';
1111

1212
$canonicalBson = hex2bin('180000000378001000000010247479706500020000000000');
1313
$canonicalExtJson = '{"x" : { "$type" : {"$numberInt": "2"}}}';

tests/bson-corpus/dbref-valid-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
DBRef: DBRef
2+
Document type (DBRef sub-documents): DBRef
33
--DESCRIPTION--
44
Generated by scripts/convert-bson-corpus-tests.php
55

tests/bson-corpus/dbref-valid-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
DBRef: DBRef with database
2+
Document type (DBRef sub-documents): DBRef with database
33
--DESCRIPTION--
44
Generated by scripts/convert-bson-corpus-tests.php
55

0 commit comments

Comments
 (0)