Skip to content

Commit 687c359

Browse files
committed
Merge pull request #740
2 parents ec632a8 + fd3c371 commit 687c359

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

tests/bson/bson-toPHP-003.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $testGroups = array(
5555
'tests' => array(
5656
'{ "foo": "yes", "bar" : false }',
5757
'{ "foo": "no", "array" : [ 5, 6 ] }',
58-
'{ "foo": "no", "obj" : { "embedded" : 3.14 } }',
58+
'{ "foo": "no", "obj" : { "embedded" : 4.125 } }',
5959
'{ "foo": "yes", "__pclass": "MyClass" }',
6060
'{ "foo": "yes", "__pclass": { "$binary": "' . $bMyClass . '", "$type": "80" } }',
6161
'{ "foo": "yes", "__pclass": { "$binary": "' . $bYourClass . '", "$type": "80" } }',
@@ -114,7 +114,7 @@ $testGroups = array(
114114
'tests' => array(
115115
'{ "foo": "yes", "bar" : false }',
116116
'{ "foo": "no", "array" : [ 5, 6 ] }',
117-
'{ "foo": "no", "obj" : { "embedded" : 3.14 } }',
117+
'{ "foo": "no", "obj" : { "embedded" : 4.125 } }',
118118
'{ "foo": "yes", "__pclass": "MyClass" }',
119119
'{ "foo": "yes", "__pclass" : { "$binary": "' . $bMyClass . '", "$type": "80" } }',
120120
'{ "foo": "yes", "__pclass" : { "$binary": "' . $bOurClass . '", "$type": "80" } }',
@@ -176,14 +176,14 @@ object(stdClass)#%d (2) {
176176
}
177177
}
178178

179-
{ "foo": "no", "obj" : { "embedded" : 3.14 } }
179+
{ "foo": "no", "obj" : { "embedded" : 4.125 } }
180180
object(stdClass)#%d (2) {
181181
["foo"]=>
182182
string(2) "no"
183183
["obj"]=>
184184
object(stdClass)#%d (1) {
185185
["embedded"]=>
186-
float(3.14)
186+
float(4.125)
187187
}
188188
}
189189

@@ -390,14 +390,14 @@ array(2) {
390390
}
391391
}
392392

393-
{ "foo": "no", "obj" : { "embedded" : 3.14 } }
393+
{ "foo": "no", "obj" : { "embedded" : 4.125 } }
394394
array(2) {
395395
["foo"]=>
396396
string(2) "no"
397397
["obj"]=>
398398
array(1) {
399399
["embedded"]=>
400-
float(3.14)
400+
float(4.125)
401401
}
402402
}
403403

tests/bson/bson-toPHP-004.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $tests = [
1717
null,
1818
true,
1919
1,
20-
3.14,
20+
4.125,
2121
'foo',
2222
[],
2323
(object) [],
@@ -139,14 +139,14 @@ object(stdClass)#%d (1) {
139139
["x"]=>
140140
array(1) {
141141
[0]=>
142-
float(3.14)
142+
float(4.125)
143143
}
144144
}
145145
object(stdClass)#%d (1) {
146146
["x"]=>
147147
object(stdClass)#%d (1) {
148148
[%r(0|"0")%r]=>
149-
float(3.14)
149+
float(4.125)
150150
}
151151
}
152152
object(stdClass)#%d (1) {
@@ -155,7 +155,7 @@ object(stdClass)#%d (1) {
155155
["storage":"ArrayObject":private]=>
156156
array(1) {
157157
[0]=>
158-
float(3.14)
158+
float(4.125)
159159
}
160160
}
161161
}

tests/bson/bug0341.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require_once __DIR__ . '/../utils/tools.php';
88
$tests = array(
99
'{ "foo": "yes", "bar" : false }',
1010
'{ "foo": "no", "array" : [ 5, 6 ] }',
11-
'{ "foo": "no", "obj" : { "embedded" : 3.14 } }',
11+
'{ "foo": "no", "obj" : { "embedded" : 4.125 } }',
1212
);
1313

1414
foreach ($tests as $test) {
@@ -43,7 +43,7 @@ object(stdClass)#%d (2) {
4343
["obj"]=>
4444
object(stdClass)#%d (1) {
4545
["embedded"]=>
46-
float(3.14)
46+
float(4.125)
4747
}
4848
}
4949
===DONE===

tests/writeResult/writeresult-getupsertedids-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $tests = [
1616
null,
1717
true,
1818
1,
19-
3.14,
19+
4.125,
2020
'foo',
2121
(object) [],
2222
new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC),
@@ -52,7 +52,7 @@ array(13) {
5252
[2]=>
5353
int(1)
5454
[3]=>
55-
float(3.14)
55+
float(4.125)
5656
[4]=>
5757
string(3) "foo"
5858
[5]=>

0 commit comments

Comments
 (0)