diff --git a/tests/DecoderTest.php b/tests/DecoderTest.php index 9925d66..a27f8bb 100644 --- a/tests/DecoderTest.php +++ b/tests/DecoderTest.php @@ -401,6 +401,18 @@ public static function getDecodeInvalidTests() 'd4', new DecodingException('Premature end of data', 1) ], + [ + 'd0', + new DecodingException('Premature end of data', 1) + ], + [ + 'd', + new DecodingException('Premature end of data', 0) + ], + [ + 'dd', + new DecodingException('Illegal character', 1) + ], [ 'ld1', new DecodingException('Premature end of data', 2)