Files
mongo-php-driver/tests/bson-corpus/binary-parseError-003.phpt
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
477 B
PHP

--TEST--
Binary type: $uuid invalid value--too long
--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('{"x" : { "$uuid" : "73ffd264-44b3-4c69-90e8-e7d1dfc035d4-789e4"}}');
}, 'MongoDB\Driver\Exception\UnexpectedValueException');
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
OK: Got MongoDB\Driver\Exception\UnexpectedValueException
===DONE===