uawdijnntqw1x1x1
IP : 3.144.255.247
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
.
/
.
/
..
/
.
/
opt
/
alt
/
tests
/
alt-php80-pecl-mongodb_1.18.1-1.el8
/
tests
/
mongoc_log_error-001.phpt
/
/
--TEST-- MongoDB\Driver\Monitoring\mongoc_log(): Invalid level --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; use MongoDB\Driver\Monitoring\LogSubscriber; use function MongoDB\Driver\Monitoring\mongoc_log; echo throws(function() { mongoc_log(LogSubscriber::LEVEL_ERROR - 1, 'domain', 'message'); }, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; echo throws(function() { // Note: LogSubscriber::LEVEL_TRACE is intentionally undefined mongoc_log(LogSubscriber::LEVEL_DEBUG + 2, 'domain', 'message'); }, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Expected level to be >= 0 and <= 6, -1 given OK: Got MongoDB\Driver\Exception\InvalidArgumentException Expected level to be >= 0 and <= 6, 7 given ===DONE===
/home/../././.././opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests/mongoc_log_error-001.phpt