From aec4634e59713e125fa6e5ee2826ab5546db7446 Mon Sep 17 00:00:00 2001 From: Christian A. Weber Date: Sat, 16 Jul 2016 18:24:08 +0200 Subject: itjs::serialize() and itjs::encode() can encode null --- tests/itjs.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/itjs.t b/tests/itjs.t index 8dff992..fce81ee 100755 --- a/tests/itjs.t +++ b/tests/itjs.t @@ -5,6 +5,12 @@ $_GET['aa'] = 1; +is( + itjs::serialize(null), + 'null', + 'null' +); + is( itjs::serialize(array()), '[]', -- cgit v1.2.3