Skip to content

Commit 87d7024

Browse files
committed
Merge pull request #701
2 parents d66e0e7 + 154ca93 commit 87d7024

15 files changed

+70
-24
lines changed

tests/apm/overview.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ object(MongoDB\Driver\Monitoring\CommandStartedEvent)#%d (%d) {
101101
object(stdClass)#%d (%d) {
102102
["insert"]=>
103103
string(12) "apm_overview"
104-
["writeConcern"]=>
105-
object(stdClass)#%d (%d) {
106-
}
107104
["ordered"]=>
108105
bool(false)%A
109106
}

tests/bulk/bulkwrite-insert_error-001.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ echo throws(function() use ($bulk) {
2828
<?php exit(0); ?>
2929
--EXPECT--
3030
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
31-
document to insert contains invalid key: empty key
31+
invalid document for insert: empty key
3232

3333
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
34-
document to insert contains invalid key: keys cannot contain ".": "x.y"
34+
invalid document for insert: keys cannot contain ".": "x.y"
3535

3636
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
37-
document to insert contains invalid key: keys cannot begin with "$": "$x"
37+
invalid document for insert: keys cannot begin with "$": "$x"
3838

3939
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
40-
document to insert contains invalid key: corrupt BSON
40+
invalid document for insert: corrupt BSON
4141
===DONE===

tests/bulk/bulkwrite-update_error-001.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ echo throws(function() use ($bulk) {
2828
<?php exit(0); ?>
2929
--EXPECT--
3030
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
31-
replacement document contains invalid key: empty key
31+
invalid argument for replace: empty key
3232

3333
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
34-
replacement document contains invalid key: keys cannot contain ".": "x.y"
34+
invalid argument for replace: keys cannot contain ".": "x.y"
3535

3636
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
37-
replacement document contains invalid key: keys cannot begin with "$": "$x"
37+
invalid argument for replace: keys cannot begin with "$": "$x"
3838

3939
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
40-
replacement document contains invalid key: corrupt BSON
40+
invalid argument for replace: corrupt BSON
4141
===DONE===

tests/bulk/bulkwrite-update_error-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ echo throws(function() use ($bulk) {
2828
<?php exit(0); ?>
2929
--EXPECT--
3030
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
31-
update document contains invalid key: empty key
31+
invalid argument for update: empty key
3232

3333
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
34-
update document contains invalid key: corrupt BSON
34+
invalid argument for update: corrupt BSON
3535

3636
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
3737
Invalid key 'z': update only works with $ operators

tests/manager/manager-ctor-read_preference-error-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ echo throws(function() {
5050
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5151
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=1'. Unsupported readPreference value [readPreference=1].
5252
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
53-
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=secondary&readPreferenceTags=invalid'. Unknown option or value for 'readPreferenceTags=invalid'.
53+
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=secondary&readPreferenceTags=invalid'. Unsupported value for "readPreferenceTags": "invalid".
5454
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5555
Expected string for "readPreference" URI option, 32-bit integer given
5656
OK: Got MongoDB\Driver\Exception\InvalidArgumentException

tests/manager/manager-ctor-read_preference-error-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ echo throws(function() {
5656
<?php exit(0); ?>
5757
--EXPECT--
5858
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
59-
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=secondary&maxStalenessSeconds=invalid'. Unknown option or value for 'maxStalenessSeconds=invalid'.
59+
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=secondary&maxStalenessSeconds=invalid'. Unsupported value for "maxStalenessSeconds": "invalid".
6060
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6161
Expected integer for "maxStalenessSeconds" URI option, string given
6262
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
63-
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=secondary&maxStalenessSeconds=2147483648'. Unknown option or value for 'maxStalenessSeconds=2147483648'.
63+
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?readPreference=secondary&maxStalenessSeconds=2147483648'. Unsupported value for "maxStalenessSeconds": "2147483648".
6464
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6565
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?maxstalenessseconds=1231'. Invalid readPreferences.
6666
OK: Got MongoDB\Driver\Exception\InvalidArgumentException

tests/manager/manager-ctor-read_preference-error-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ echo throws(function() {
1818
<?php exit(0); ?>
1919
--EXPECT--
2020
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
21-
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?slaveok=other'. Unknown option or value for 'slaveok=other'.
21+
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?slaveok=other'. Unsupported value for "slaveok": "other".
2222
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
2323
Expected boolean for "slaveOk" URI option, 32-bit integer given
2424
===DONE===

tests/manager/manager-ctor-write_concern-error-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ echo throws(function() {
1919
<?php exit(0); ?>
2020
--EXPECT--
2121
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
22-
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?wtimeoutms=invalid'. Unknown option or value for 'wtimeoutms=invalid'.
22+
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?wtimeoutms=invalid'. Unsupported value for "wtimeoutms": "invalid".
2323
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
2424
Expected 32-bit integer for "wTimeoutMS" URI option, string given
2525
===DONE===

tests/manager/manager-ctor-write_concern-error-005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ echo throws(function() {
5454
<?php exit(0); ?>
5555
--EXPECT--
5656
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
57-
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?journal=invalid'. Unknown option or value for 'journal=invalid'.
57+
Failed to parse MongoDB URI: 'mongodb://127.0.0.1/?journal=invalid'. Unsupported value for "journal": "invalid".
5858
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5959
Expected boolean for "journal" URI option, string given
6060
OK: Got MongoDB\Driver\Exception\InvalidArgumentException

0 commit comments

Comments
 (0)