File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ $tests = [
13
13
[ 'int64 ' => new MongoDB \BSON \Int64 ('9223372036854775807 ' ) ],
14
14
// JavaScript w/ scope may not be necessary (same code path as w/o scope), but we'll test it anyway
15
15
[ 'javascript ' => new MongoDB \BSON \Javascript ('function() { return 1; } ' ) ],
16
- [ 'javascript_ws ' => new MongoDB \BSON \Javascript ('function() { return a; } ' , ['a ' => 1 ]) ],
16
+
17
+ // The context is recreated every time with a different object ID
18
+ //[ 'javascript_ws' => new MongoDB\BSON\Javascript('function() { return a; }', ['a' => 1]) ],
19
+
17
20
// MaxKey and MinKey don't have get_properties or get_gc handlers, but we'll test them anyway
18
21
[ 'maxkey ' => new MongoDB \BSON \MaxKey ],
19
22
[ 'minkey ' => new MongoDB \BSON \MinKey ],
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ $tests = [
11
11
[ 'int64 ' => new MongoDB \BSON \Int64 ('9223372036854775807 ' ) ],
12
12
// JavaScript w/ scope may not be necessary (same code path as w/o scope), but we'll test it anyway
13
13
[ 'javascript ' => new MongoDB \BSON \Javascript ('function() { return 1; } ' ) ],
14
- [ 'javascript_ws ' => new MongoDB \BSON \Javascript ('function() { return a; } ' , ['a ' => 1 ]) ],
14
+ // The context is recreated every time with a different object ID
15
+ //[ 'javascript_ws' => new MongoDB\BSON\Javascript('function() { return a; }', ['a' => 1]) ],
15
16
// MaxKey and MinKey don't have get_properties or get_gc handlers, but we'll test them anyway
16
17
[ 'maxkey ' => new MongoDB \BSON \MaxKey ],
17
18
[ 'minkey ' => new MongoDB \BSON \MinKey ],
You can’t perform that action at this time.
0 commit comments