Skip to content

Commit e61b678

Browse files
committed
PHPC-357: Revise test and relocate to standalone group
1 parent dead06a commit e61b678

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

tests/manager/bug0357.phpt

Lines changed: 0 additions & 22 deletions
This file was deleted.

tests/standalone/bug0357.phpt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
===DONE===

0 commit comments

Comments
 (0)