Skip to content

Commit 3bb0c8b

Browse files
committed
In SDAM this is forbidden and throws exception
1 parent 9d78b52 commit 3bb0c8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/standalone/bug0159.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ require_once "tests/utils/basic.inc";
88

99
$uri = parse_url(STANDALONE);
1010
$manager = new MongoDB\Driver\Manager("mongodb:///tmp/mongodb-27018.sock,{$uri["host"]}:{$uri["port"]}");
11-
$manager->executeQuery("foo.bar", new MongoDB\Driver\Query([]));
11+
try {
12+
$manager->executeQuery("foo.bar", new MongoDB\Driver\Query([]));
13+
} catch(Exception $e) {}
1214

1315
?>
1416
===DONE===

0 commit comments

Comments
 (0)