Skip to content

Commit 0d3ca08

Browse files
committed
Update exception messages in tests
1 parent 6fed13f commit 0d3ca08

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/connect/bug1045.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ echo throws(function() {
1818
<?php exit(0); ?>
1919
--EXPECTF--
2020
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
21-
Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires username
21+
Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires a username
2222
===DONE===

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ echo throws(function() {
3838
<?php exit(0); ?>
3939
--EXPECT--
4040
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
41-
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authMechanism=GSSAPI&authSource=admin'. GSSAPI and X509 require "$external" authSource.
41+
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authMechanism=GSSAPI&authSource=admin'. 'GSSAPI' authentication mechanism requires a username.
4242
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
43-
Failed to parse URI options: GSSAPI and X509 require "$external" authSource
43+
Failed to parse URI options: 'GSSAPI' authentication mechanism requires a username
4444
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
45-
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authMechanism=MONGODB-X509&authSource=admin'. GSSAPI and X509 require "$external" authSource.
45+
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authMechanism=MONGODB-X509&authSource=admin'. 'MONGODB-X509' authentication mechanism requires "$external" authSource, but "admin" was specified.
4646
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
47-
Failed to parse URI options: GSSAPI and X509 require "$external" authSource
47+
Failed to parse URI options: 'MONGODB-X509' authentication mechanism requires "$external" authSource, but "admin" was specified
4848
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
49-
Failed to parse MongoDB URI: 'mongodb://@localhost:27017/?authMechanism=SCRAM-SHA-1'. 'SCRAM-SHA-1' authentication mechanism requires username.
49+
Failed to parse MongoDB URI: 'mongodb://@localhost:27017/?authMechanism=SCRAM-SHA-1'. 'SCRAM-SHA-1' authentication mechanism requires a username.
5050
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
51-
Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires username
51+
Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires a username
5252
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
5353
Failed to parse URI options: 'MONGODB-X509' authentication mechanism does not accept a password
5454
===DONE===

0 commit comments

Comments
 (0)