Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit af98c0b

Browse files
committed
Merged pull request #128
2 parents 657f352 + 6d3445a commit af98c0b

9 files changed

+52
-52
lines changed

tests/MongoDBBSONBinary_set_state-001.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@ foreach ($tests as $test) {
2323
?>
2424
--EXPECTF--
2525
MongoDB\BSON\Binary::__set_state(array(
26-
'data' => 'foobar',
27-
'type' => 0,
26+
%w'data' => 'foobar',
27+
%w'type' => 0,
2828
))
2929

3030
MongoDB\BSON\Binary::__set_state(array(
31-
'data' => '',
32-
'type' => 0,
31+
%w'data' => '',
32+
%w'type' => 0,
3333
))
3434

3535
MongoDB\BSON\Binary::__set_state(array(
36-
'data' => '' . "\0" . 'foo',
37-
'type' => 0,
36+
%w'data' => '' . "\0" . 'foo',
37+
%w'type' => 0,
3838
))
3939

4040
MongoDB\BSON\Binary::__set_state(array(
41-
'data' => '%a' . "\0" . '' . "\0" . '',
42-
'type' => 4,
41+
%w'data' => '%a' . "\0" . '' . "\0" . '',
42+
%w'type' => 4,
4343
))
4444

4545
MongoDB\BSON\Binary::__set_state(array(
46-
'data' => '%a',
47-
'type' => 5,
46+
%w'data' => '%a',
47+
%w'type' => 5,
4848
))

tests/MongoDBBSONDecimal128_set_state-001.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@ foreach ($tests as $value) {
2121
}
2222

2323
?>
24-
--EXPECT--
24+
--EXPECTF--
2525
MongoDB\BSON\Decimal128::__set_state(array(
26-
'dec' => '1234.5678',
26+
%w'dec' => '1234.5678',
2727
))
2828

2929
MongoDB\BSON\Decimal128::__set_state(array(
30-
'dec' => '-1234.5678',
30+
%w'dec' => '-1234.5678',
3131
))
3232

3333
MongoDB\BSON\Decimal128::__set_state(array(
34-
'dec' => 'Infinity',
34+
%w'dec' => 'Infinity',
3535
))
3636

3737
MongoDB\BSON\Decimal128::__set_state(array(
38-
'dec' => 'Infinity',
38+
%w'dec' => 'Infinity',
3939
))
4040

4141
MongoDB\BSON\Decimal128::__set_state(array(
42-
'dec' => 'NaN',
42+
%w'dec' => 'NaN',
4343
))
4444

4545
MongoDB\BSON\Decimal128::__set_state(array(
46-
'dec' => 'NaN',
46+
%w'dec' => 'NaN',
4747
))
4848

tests/MongoDBBSONJavascript_set_state-001.phpt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,36 @@ echo "\n\n";
2828
?>
2929
--EXPECTF--
3030
MongoDB\BSON\Javascript::__set_state(array(
31-
'code' => 'function foo(bar) { return bar; }',
31+
%w'code' => 'function foo(bar) { return bar; }',
3232
))
3333

3434
MongoDB\BSON\Javascript::__set_state(array(
35-
'code' => 'function foo(bar) { return bar; }',
36-
'scope' =>
35+
%w'code' => 'function foo(bar) { return bar; }',
36+
%w'scope' =>
3737
stdClass::__set_state(array(
3838
)),
3939
))
4040

4141
MongoDB\BSON\Javascript::__set_state(array(
42-
'code' => 'function foo() { return foo; }',
43-
'scope' =>
42+
%w'code' => 'function foo() { return foo; }',
43+
%w'scope' =>
4444
stdClass::__set_state(array(
45-
'foo' => 42,
45+
%w'foo' => 42,
4646
)),
4747
))
4848

4949
MongoDB\BSON\Javascript::__set_state(array(
50-
'code' => 'function foo() { return id; }',
51-
'scope' =>
50+
%w'code' => 'function foo() { return id; }',
51+
%w'scope' =>
5252
stdClass::__set_state(array(
53-
'id' =>
53+
%w'id' =>
5454
MongoDB\BSON\ObjectID::__set_state(array(
55-
'oid' => '53e2a1c40640fd72175d4603',
55+
%w'oid' => '53e2a1c40640fd72175d4603',
5656
)),
5757
)),
5858
))
5959

6060
MongoDB\BSON\Javascript::__set_state(array(
61-
'code' => 'function foo(bar) { return bar; }',
61+
%w'code' => 'function foo(bar) { return bar; }',
6262
))
6363

tests/MongoDBBSONObjectID_set_state-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var_export(MongoDB\BSON\ObjectID::__set_state([
88
echo "\n";
99

1010
?>
11-
--EXPECT--
11+
--EXPECTF--
1212
MongoDB\BSON\ObjectID::__set_state(array(
13-
'oid' => '576c25db6118fd406e6e6471',
13+
%w'oid' => '576c25db6118fd406e6e6471',
1414
))

tests/MongoDBBSONRegex_set_state-001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ var_export(MongoDB\BSON\Regex::__set_state([
99
echo "\n";
1010

1111
?>
12-
--EXPECT--
12+
--EXPECTF--
1313
MongoDB\BSON\Regex::__set_state(array(
14-
'pattern' => 'regexp',
15-
'flags' => 'i',
14+
%w'pattern' => 'regexp',
15+
%w'flags' => 'i',
1616
))

tests/MongoDBBSONTimestamp_set_state-001.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ foreach ($tests as $test) {
1919
}
2020

2121
?>
22-
--EXPECT--
22+
--EXPECTF--
2323
MongoDB\BSON\Timestamp::__set_state(array(
24-
'increment' => '1234',
25-
'timestamp' => '5678',
24+
%w'increment' => '1234',
25+
%w'timestamp' => '5678',
2626
))
2727

2828
MongoDB\BSON\Timestamp::__set_state(array(
29-
'increment' => '2147483647',
30-
'timestamp' => '0',
29+
%w'increment' => '2147483647',
30+
%w'timestamp' => '0',
3131
))
3232

3333
MongoDB\BSON\Timestamp::__set_state(array(
34-
'increment' => '0',
35-
'timestamp' => '2147483647',
34+
%w'increment' => '0',
35+
%w'timestamp' => '2147483647',
3636
))
3737

tests/MongoDBBSONTimestamp_set_state-002.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ foreach ($tests as $test) {
2020
}
2121

2222
?>
23-
--EXPECT--
23+
--EXPECTF--
2424
MongoDB\BSON\Timestamp::__set_state(array(
25-
'increment' => '4294967295',
26-
'timestamp' => '0',
25+
%w'increment' => '4294967295',
26+
%w'timestamp' => '0',
2727
))
2828

2929
MongoDB\BSON\Timestamp::__set_state(array(
30-
'increment' => '0',
31-
'timestamp' => '4294967295',
30+
%w'increment' => '0',
31+
%w'timestamp' => '4294967295',
3232
))
3333

tests/MongoDBBSONUTCDateTime_set_state-001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ foreach ($tests as $milliseconds) {
1818
?>
1919
--EXPECTF--
2020
MongoDB\BSON\UTCDateTime::__set_state(array(
21-
'milliseconds' => %r'?%r0%r'?%r,
21+
%w'milliseconds' => %r'?%r0%r'?%r,
2222
))
2323

2424
MongoDB\BSON\UTCDateTime::__set_state(array(
25-
'milliseconds' => %r'?%r-1416445411987%r'?%r,
25+
%w'milliseconds' => %r'?%r-1416445411987%r'?%r,
2626
))
2727

2828
MongoDB\BSON\UTCDateTime::__set_state(array(
29-
'milliseconds' => %r'?%r1416445411987%r'?%r,
29+
%w'milliseconds' => %r'?%r1416445411987%r'?%r,
3030
))
3131

tests/MongoDBBSONUTCDateTime_set_state-002.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ foreach ($tests as $milliseconds) {
1616
}
1717

1818
?>
19-
--EXPECT--
19+
--EXPECTF--
2020
MongoDB\BSON\UTCDateTime::__set_state(array(
21-
'milliseconds' => '0',
21+
%w'milliseconds' => '0',
2222
))
2323

2424
MongoDB\BSON\UTCDateTime::__set_state(array(
25-
'milliseconds' => '-1416445411987',
25+
%w'milliseconds' => '-1416445411987',
2626
))
2727

2828
MongoDB\BSON\UTCDateTime::__set_state(array(
29-
'milliseconds' => '1416445411987',
29+
%w'milliseconds' => '1416445411987',
3030
))
3131

0 commit comments

Comments
 (0)