Skip to content

Commit 9a97815

Browse files
committed
Added tests
1 parent 6e90e61 commit 9a97815

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/DecoderTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,18 @@ public static function getDecodeInvalidTests()
401401
'd4',
402402
new DecodingException('Premature end of data', 1)
403403
],
404+
[
405+
'd0',
406+
new DecodingException('Premature end of data', 1)
407+
],
408+
[
409+
'd',
410+
new DecodingException('Premature end of data', 0)
411+
],
412+
[
413+
'dd',
414+
new DecodingException('Illegal character', 1)
415+
],
404416
[
405417
'ld1',
406418
new DecodingException('Premature end of data', 2)

0 commit comments

Comments
 (0)