@@ -33,29 +33,22 @@ echo throws(function() {
33
33
create_test_manager ('mongodb://localhost:27017/ ' , ['password ' => 'password ' , 'authMechanism ' => 'MONGODB-X509 ' ]);
34
34
}, "MongoDB\Driver\Exception\InvalidArgumentException " ), "\n" ;
35
35
36
- // TODO: This test case should be removed by PHPC-1950
37
- echo throws (function () {
38
- create_test_manager ('mongodb://localhost:27017/ ' , ['authSource ' => 'foo ' ]);
39
- }, "MongoDB\Driver\Exception\InvalidArgumentException " ), "\n" ;
40
-
41
36
?>
42
37
===DONE===
43
38
<?php exit (0 ); ?>
44
39
--EXPECT--
45
40
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
46
41
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authMechanism=GSSAPI&authSource=admin'. GSSAPI and X509 require "$external" authSource.
47
42
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
48
- Failed to parse URI options: GSSAPI and X509 require "$external" authSource.
43
+ Failed to parse URI options: GSSAPI and X509 require "$external" authSource
49
44
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
50
45
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authMechanism=MONGODB-X509&authSource=admin'. GSSAPI and X509 require "$external" authSource.
51
46
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
52
- Failed to parse URI options: GSSAPI and X509 require "$external" authSource.
47
+ Failed to parse URI options: GSSAPI and X509 require "$external" authSource
53
48
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
54
49
Failed to parse MongoDB URI: 'mongodb://@localhost:27017/?authMechanism=SCRAM-SHA-1'. 'SCRAM-SHA-1' authentication mechanism requires username.
55
50
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
56
- Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires username.
57
- OK: Got MongoDB\Driver\Exception\InvalidArgumentException
58
- Failed to parse URI options: X509 authentication mechanism does not accept a password.
51
+ Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires username
59
52
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
60
- Failed to parse URI options: Default authentication mechanism requires username.
53
+ Failed to parse URI options: 'MONGODB-X509' authentication mechanism does not accept a password
61
54
===DONE===
0 commit comments