Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.2.27-202502031751
/
share
/
test
/
mongodb
/
tests
/
command
/
//opt/php-8.2.27-202502031751/share/test/mongodb/tests/command/command-ctor-002.phpt
--TEST-- MongoDB\Driver\Command::__construct() $document is MongoDB\Driver\Document --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> <?php skip_if_not_clean(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager(); $document = MongoDB\BSON\Document::fromJSON('{ "ping": 1 }'); $command = new MongoDB\Driver\Command($document); var_dump($command); $cursor = $manager->executeCommand(DATABASE_NAME, $command); var_dump($cursor->toArray()[0]); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(MongoDB\Driver\Command)#%d (%d) { ["command"]=> object(stdClass)#%d (%d) { ["ping"]=> int(1) } } object(stdClass)#%d (%d) { ["ok"]=> float(1)%A } ===DONE===