Skip to content

Commit 3afb8f5

Browse files
committed
Update error expectations for libmongoc 2.1
1 parent 3f7be27 commit 3afb8f5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/manager/manager-ctor-006.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo throws(function() {
1212
?>
1313
===DONE===
1414
<?php exit(0); ?>
15-
--EXPECT--
15+
--EXPECTF--
1616
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
17-
Failed to parse MongoDB URI: 'invalid'. Invalid URI Schema, expecting 'mongodb://' or 'mongodb+srv://'.
17+
Failed to parse MongoDB URI: 'invalid'. Invalid URI%s
1818
===DONE===

tests/manager/manager-ctor_error-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo throws(function() {
1212
?>
1313
===DONE===
1414
<?php exit(0); ?>
15-
--EXPECT--
15+
--EXPECTF--
1616
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
17-
Failed to parse MongoDB URI: 'not a valid connection string'. Invalid URI Schema, expecting 'mongodb://' or 'mongodb+srv://'.
17+
Failed to parse MongoDB URI: 'not a valid connection string'. Invalid URI%s
1818
===DONE===

tests/manager/manager-ctor_error-004.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ echo throws(function () {
1717
?>
1818
===DONE===
1919
<?php exit(0); ?>
20-
--EXPECT--
20+
--EXPECTF--
2121
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
22-
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?replicaSet='. Value for URI option "replicaset" cannot be empty string.
22+
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?replicaSet='. Value for URI option "replica%r(s|S)%rset" cannot be empty string.
2323
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
2424
Value for URI option "replicaSet" cannot be empty string.
2525
===DONE===

0 commit comments

Comments
 (0)