Files
mongo-php-driver/tests/bson-corpus/top-parseError-034.phpt
T
Jeremy Mikola 6929bcb608 PHPC-1765 and PHPC-1821: DBRef and dot/dollar validation tests (#1225)
Remove tests expecting client-side validation errors for dots/dollars in field names.

Syncs BSON corpus tests with mongodb/specifications@a274fbfddf

Bump libmongoc submodule to 1.18-dev
2021-06-22 16:08:02 -04:00

21 lines
459 B
PHP

--TEST--
Top-level document validity: Bad $minKey (boolean, not integer)
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
throws(function() {
fromJSON('{"a" : {"$minKey" : true}}');
}, 'MongoDB\Driver\Exception\UnexpectedValueException');
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
OK: Got MongoDB\Driver\Exception\UnexpectedValueException
===DONE===