// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
tests
/
alt-php81-pecl-mongodb_1.18.1-1.el8
/
tests
[ PARENT ]
EDIT :: bug0357.phpt
--TEST-- PHPC-357: The exception for "invalid namespace" does not list the broken name --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $m = create_test_manager(); $c = new MongoDB\Driver\Query(array()); echo throws(function() use($m, $c) { $m->executeQuery( 'demo', $c ); }, "MongoDB\\Driver\\Exception\\InvalidArgumentException"), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Invalid namespace provided: demo ===DONE===
SAVE
CANCEL