summaryrefslogtreecommitdiff
path: root/t/Dump.t
diff options
context:
space:
mode:
Diffstat (limited to 't/Dump.t')
-rw-r--r--t/Dump.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/Dump.t b/t/Dump.t
new file mode 100644
index 0000000..fafb5b2
--- /dev/null
+++ b/t/Dump.t
@@ -0,0 +1,5 @@
+use Test::More 'no_plan';
+use CGI;
+my $cgi = CGI->new('<a>=<b>');
+like($cgi->Dump, qr/\Q&lt;a&gt;/, 'param names are HTML escaped by Dump()');
+like($cgi->Dump, qr/\Q&lt;b&gt;/, 'param values are HTML escaped by Dump()');