--TEST-- PHPC-155: WriteConcernError->getInfo() can be scalar --SKIPIF-- --FILE-- insert(array('example' => 'document')); try { $manager->executeBulkWrite(NS, $bulk, $wc); } catch(MongoDB\Driver\Exception\BulkWriteException $e) { var_dump($e->getWriteResult()->getWriteConcernError()); } ?> ===DONE=== --EXPECTF-- object(MongoDB\Driver\WriteConcernError)#%d (%d) { ["message"]=> string(%d) "%s" ["code"]=> int(79) ["info"]=> %a } ===DONE===