Skip to content

Commit 9778b84

Browse files
committed
PHPC-1263: Fix tests for PHP 7.3 output changes
1 parent 51c622f commit 9778b84

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ MongoDB\BSON\Javascript::__set_state(array(
3838
MongoDB\BSON\Javascript::__set_state(array(
3939
%w'code' => 'function foo(bar) { return bar; }',
4040
%w'scope' =>
41-
stdClass::__set_state(array(
42-
)),
41+
%Sarray(
42+
%S),
4343
))
4444

4545
MongoDB\BSON\Javascript::__set_state(array(
4646
%w'code' => 'function foo() { return foo; }',
4747
%w'scope' =>
48-
stdClass::__set_state(array(
48+
%Sarray(
4949
%w'foo' => 42,
50-
)),
50+
%S),
5151
))
5252

5353
MongoDB\BSON\Javascript::__set_state(array(
5454
%w'code' => 'function foo() { return id; }',
5555
%w'scope' =>
56-
stdClass::__set_state(array(
56+
%Sarray(
5757
%w'id' =>
5858
MongoDB\BSON\ObjectId::__set_state(array(
5959
%w'oid' => '53e2a1c40640fd72175d4603',
6060
)),
61-
)),
61+
%S),
6262
))
6363

6464
MongoDB\BSON\Javascript::__set_state(array(

tests/readPreference/readpreference-var_export-001.phpt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ foreach ($tests as $test) {
2424
?>
2525
===DONE===
2626
<?php exit(0); ?>
27-
--EXPECT--
27+
--EXPECTF--
2828
MongoDB\Driver\ReadPreference::__set_state(array(
2929
'mode' => 'primary',
3030
))
@@ -48,27 +48,27 @@ MongoDB\Driver\ReadPreference::__set_state(array(
4848
'tags' =>
4949
array (
5050
0 =>
51-
stdClass::__set_state(array(
51+
%Sarray(
5252
'dc' => 'ny',
53-
)),
53+
%S),
5454
),
5555
))
5656
MongoDB\Driver\ReadPreference::__set_state(array(
5757
'mode' => 'secondary',
5858
'tags' =>
5959
array (
6060
0 =>
61-
stdClass::__set_state(array(
61+
%Sarray(
6262
'dc' => 'ny',
63-
)),
63+
%S),
6464
1 =>
65-
stdClass::__set_state(array(
65+
%Sarray(
6666
'dc' => 'sf',
6767
'use' => 'reporting',
68-
)),
68+
%S),
6969
2 =>
70-
stdClass::__set_state(array(
71-
)),
70+
%Sarray(
71+
%S),
7272
),
7373
))
7474
MongoDB\Driver\ReadPreference::__set_state(array(

tests/session/session_error-001.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ foreach ($options as $txnOptions) {
4747
<?php exit(0); ?>
4848
--EXPECTF--
4949
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
50-
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, integer given
50+
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, int%S given
5151
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5252
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, stdClass given
5353
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5454
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, MongoDB\Driver\WriteConcern given
5555
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
56-
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, integer given
56+
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, int%S given
5757
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5858
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, stdClass given
5959
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6060
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, MongoDB\Driver\ReadConcern given
6161
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
62-
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, integer given
62+
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, int%S given
6363
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6464
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, stdClass given
6565
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
@@ -71,7 +71,7 @@ Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, MongoDB\Driver
7171
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
7272
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, MongoDB\Driver\ReadPreference given
7373
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
74-
Expected "defaultTransactionOptions" option to be an array, integer given
74+
Expected "defaultTransactionOptions" option to be an array, int%S given
7575
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
7676
Expected "defaultTransactionOptions" option to be an array, stdClass given
7777
===DONE===

0 commit comments

Comments
 (0)