We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d3f61 commit fc6bc45Copy full SHA for fc6bc45
tests/Unit/BufferUnpackerTest.php
@@ -84,6 +84,8 @@ public function provideInsufficientData() : array
84
'int64' => ["\xd3"],
85
'float32' => ["\xca"],
86
'float64' => ["\xcb"],
87
+ 'mapkey' => ["\xdf\x00\x00\x00\x01"],
88
+ 'mapkey_uint64' => ["\xdf\x00\x00\x00\x01\xcf"],
89
'fixext1' => ["\xd4"],
90
'fixext1t' => ["\xd4\x01"],
91
'fixext2' => ["\xd5"],
@@ -675,6 +677,9 @@ public function provideMapWithInvalidKeyData() : iterable
675
677
yield ["\x81{$packed}\x00", $type]; // [$raw => 0]
676
678
}
679
680
+
681
+ // unknown key type
682
+ yield ["\x81\xc1\x00", '0xc1'];
683
684
685
public function testOverflowedUint64MapKeyIsConvertedToString() : void
0 commit comments