summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/php/status.t
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/perl-framework/t/php/status.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/perl-framework/t/php/status.t b/debian/perl-framework/t/php/status.t
new file mode 100644
index 0000000..cc783ae
--- /dev/null
+++ b/debian/perl-framework/t/php/status.t
@@ -0,0 +1,15 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil;
+
+my @codes = (404, 599);
+
+plan tests => @codes + 0, need_php;
+
+foreach my $code (@codes) {
+ ok t_cmp(GET_RC("/php/status.php?code=$code"), $code,
+ "regression test for http://bugs.php.net/bug.php?id=31519");
+}