Viewing File: /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests/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===
Back to Directory File Manager
<