We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dead06a commit e61b678Copy full SHA for e61b678
tests/manager/bug0357.phpt
tests/standalone/bug0357.phpt
@@ -0,0 +1,22 @@
1
+--TEST--
2
+PHPC-357: The exception for "invalid namespace" does not list the broken name
3
+--SKIPIF--
4
+<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5
+--FILE--
6
+<?php
7
+require_once __DIR__ . "/../utils/basic.inc";
8
+
9
+$m = new MongoDB\Driver\Manager(STANDALONE);
10
+$c = new MongoDB\Driver\Query(array());
11
12
+echo throws(function() use($m, $c) {
13
+ $m->executeQuery( 'demo', $c );
14
+}, "MongoDB\\Driver\\Exception\\InvalidArgumentException"), "\n";
15
16
+?>
17
+===DONE===
18
+<?php exit(0); ?>
19
+--EXPECT--
20
+OK: Got MongoDB\Driver\Exception\InvalidArgumentException
21
+Invalid namespace provided: demo
22
0 commit comments