From 9a978159e3c163e4e7a28af93799e75e9cbb54e8 Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Thu, 19 Oct 2023 18:09:22 +0200 Subject: [PATCH] Added tests --- tests/DecoderTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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)