Skip to content

Commit 87096da

Browse files
committed
PHPC-1263: Update tests for PHP 7.3's output changes
1 parent a73187c commit 87096da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/session/session-startTransaction_error-002.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ foreach ($options as $txnOptions) {
4848
<?php exit(0); ?>
4949
--EXPECTF--
5050
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
51-
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, integer given
51+
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, int%S given
5252
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5353
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, stdClass given
5454
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5555
Expected "readConcern" option to be MongoDB\Driver\ReadConcern, MongoDB\Driver\WriteConcern given
5656
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
57-
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, integer given
57+
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, int%S given
5858
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5959
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, stdClass given
6060
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6161
Expected "readPreference" option to be MongoDB\Driver\ReadPreference, MongoDB\Driver\ReadConcern given
6262
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
63-
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, integer given
63+
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, int%S given
6464
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6565
Expected "writeConcern" option to be MongoDB\Driver\WriteConcern, stdClass given
6666
OK: Got MongoDB\Driver\Exception\InvalidArgumentException

tests/session/session-startTransaction_error-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ foreach ($options as $txnOptions) {
2525
===DONE===
2626
<?php exit(0); ?>
2727
--EXPECTF--
28-
Warning: MongoDB\Driver\Session::startTransaction() expects parameter 1 to be array, integer given in %s on line %d
28+
Warning: MongoDB\Driver\Session::startTransaction() expects parameter 1 to be array, int%S given in %s on line %d
2929

3030
Warning: MongoDB\Driver\Session::startTransaction() expects parameter 1 to be array, object given in %s on line %d
3131
===DONE===

0 commit comments

Comments
 (0)