Viewing File: /opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests/compression_error-002.phpt
--TEST--
MongoDB\Driver\Manager: Connecting with invalid compressor values
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";
echo throws(function() {
$manager = create_test_manager(URI, [ 'compressors' => "foo\xFEbar"] );
}, 'MongoDB\Driver\Exception\UnexpectedValueException'), "\n";
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
OK: Got MongoDB\Driver\Exception\UnexpectedValueException
Detected invalid UTF-8 for field path "compressors": %s
===DONE===
Back to Directory
File Manager
<