Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-7.4
/
share
/
test
/
mongodb
/
tests
/
cursorid
/
//opt/php-7.4/share/test/mongodb/tests/cursorid/cursorid-set_state_error-001.phpt
--TEST-- MongoDB\Driver\CursorId::__set_state() requires "id" string field --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; echo throws(function() { MongoDB\Driver\CursorId::__set_state(['id' => 0]); }, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException MongoDB\Driver\CursorId initialization requires "id" string field ===DONE===