Skip to content

Commit aef7106

Browse files
committed
Revert "Use canonical ObjectID class name in tests"
This reverts commit 991cbe8.
1 parent 5d2a774 commit aef7106

13 files changed

+13
-13
lines changed

src/bson-encode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static void php_phongo_bson_append_object(bson_t *bson, php_phongo_bson_flags_t
207207
bson_oid_t oid;
208208
php_phongo_objectid_t *intern = Z_OBJECTID_OBJ_P(object);
209209

210-
mongoc_log(MONGOC_LOG_LEVEL_TRACE, MONGOC_LOG_DOMAIN, "encoding ObjectID");
210+
mongoc_log(MONGOC_LOG_LEVEL_TRACE, MONGOC_LOG_DOMAIN, "encoding ObjectId");
211211
bson_oid_init_from_string(&oid, intern->oid);
212212
bson_append_oid(bson, key, key_len, &oid);
213213
return;

tests/bson-corpus/oid-decodeError-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
ObjectID: OID truncated
2+
ObjectId: OID truncated
33
--DESCRIPTION--
44
Generated by scripts/convert-bson-corpus-tests.php
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
ObjectID: All zeroes
2+
ObjectId: All zeroes
33
--DESCRIPTION--
44
Generated by scripts/convert-bson-corpus-tests.php
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
ObjectID: All ones
2+
ObjectId: All ones
33
--DESCRIPTION--
44
Generated by scripts/convert-bson-corpus-tests.php
55

tests/bson-corpus/oid-valid-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
ObjectID: Random
2+
ObjectId: Random
33
--DESCRIPTION--
44
Generated by scripts/convert-bson-corpus-tests.php
55

tests/bson/bson-fromPHP_error-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $tests = array(
1515
new MongoDB\BSON\Javascript('function foo(bar) {var baz = bar; var bar = foo; return bar; }'),
1616
new MongoDB\BSON\MinKey,
1717
new MongoDB\BSON\MaxKey,
18-
new MongoDB\BSON\ObjectID,
18+
new MongoDB\BSON\ObjectId,
1919
new MongoDB\BSON\Regex('regexp', 'i'),
2020
new MongoDB\BSON\Timestamp(1234, 5678),
2121
new MongoDB\BSON\UTCDateTime('1416445411987'),

tests/bson/bson-javascript-getCode-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $tests = [
77
['function foo(bar) { return bar; }', null],
88
['function foo(bar) { return bar; }', []],
99
['function foo() { return foo; }', ['foo' => 42]],
10-
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectID('53e2a1c40640fd72175d4603')]],
10+
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectId('53e2a1c40640fd72175d4603')]],
1111
];
1212

1313
foreach ($tests as $test) {

tests/bson/bson-javascript-getScope-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $tests = [
77
['function foo(bar) { return bar; }', null],
88
['function foo(bar) { return bar; }', []],
99
['function foo() { return foo; }', ['foo' => 42]],
10-
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectID('53e2a1c40640fd72175d4603')]],
10+
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectId('53e2a1c40640fd72175d4603')]],
1111
];
1212

1313
foreach ($tests as $test) {

tests/bson/bson-javascript-serialization-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $tests = [
77
['function foo(bar) { return bar; }', null],
88
['function foo(bar) { return bar; }', []],
99
['function foo() { return foo; }', ['foo' => 42]],
10-
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectID('53e2a1c40640fd72175d4603')]],
10+
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectId('53e2a1c40640fd72175d4603')]],
1111
];
1212

1313
foreach ($tests as $test) {

tests/bson/bson-javascript-set_state-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $tests = [
77
['function foo(bar) { return bar; }', null],
88
['function foo(bar) { return bar; }', []],
99
['function foo() { return foo; }', ['foo' => 42]],
10-
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectID('53e2a1c40640fd72175d4603')]],
10+
['function foo() { return id; }', ['id' => new MongoDB\BSON\ObjectId('53e2a1c40640fd72175d4603')]],
1111
];
1212

1313
foreach ($tests as $test) {

tests/bson/bson-toCanonicalJSON-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MongoDB\BSON\toCanonicalExtendedJSON(): Encoding extended JSON types
66
require_once __DIR__ . '/../utils/tools.php';
77

88
$tests = [
9-
[ '_id' => new MongoDB\BSON\ObjectID('56315a7c6118fd1b920270b1') ],
9+
[ '_id' => new MongoDB\BSON\ObjectId('56315a7c6118fd1b920270b1') ],
1010
[ 'binary' => new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC) ],
1111
[ 'date' => new MongoDB\BSON\UTCDateTime(1445990400000) ],
1212
[ 'timestamp' => new MongoDB\BSON\Timestamp(1234, 5678) ],

tests/bson/bson-toJSON-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MongoDB\BSON\toJSON(): Encoding extended JSON types
66
require_once __DIR__ . '/../utils/tools.php';
77

88
$tests = [
9-
[ '_id' => new MongoDB\BSON\ObjectID('56315a7c6118fd1b920270b1') ],
9+
[ '_id' => new MongoDB\BSON\ObjectId('56315a7c6118fd1b920270b1') ],
1010
[ 'binary' => new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC) ],
1111
[ 'date' => new MongoDB\BSON\UTCDateTime(1445990400000) ],
1212
[ 'timestamp' => new MongoDB\BSON\Timestamp(1234, 5678) ],

tests/bson/bson-toRelaxedJSON-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MongoDB\BSON\toRelaxedExtendedJSON(): Encoding extended JSON types
66
require_once __DIR__ . '/../utils/tools.php';
77

88
$tests = [
9-
[ '_id' => new MongoDB\BSON\ObjectID('56315a7c6118fd1b920270b1') ],
9+
[ '_id' => new MongoDB\BSON\ObjectId('56315a7c6118fd1b920270b1') ],
1010
[ 'binary' => new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC) ],
1111
[ 'date' => new MongoDB\BSON\UTCDateTime(1445990400000) ],
1212
[ 'timestamp' => new MongoDB\BSON\Timestamp(1234, 5678) ],

0 commit comments

Comments
 (0)