From f7f5f74c88ae11093b2ced9716c8152d95d3ac29 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 1 Jun 2008 15:52:06 +0000 Subject: [PATCH] Add debug info into failure messages --- mirror-info.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mirror-info.php b/mirror-info.php index 7cb5aa397..1f405c0f8 100644 --- a/mirror-info.php +++ b/mirror-info.php @@ -55,6 +55,7 @@ function run_self_tests() { return array( "name" => "Apache manual alias", "see" => $MYSITE . "mirroring-troubles.php#manual-redirect", + "got" => var_export($content), ); } @@ -63,6 +64,7 @@ function run_self_tests() { return array( "name" => "Header weirdness. Pages named '.html.php' are returning wrong status headers", "see" => $MYSITE . "mirroring-troubles.php#content-type", + "got" => var_export($ctype), ); } @@ -73,7 +75,8 @@ function run_self_tests() { if (strpos($ctype, "text/html") === false) { return array( "name" => "MultiViews on", - "see" => $MYSITE . "mirroring-troubles.php#multiviews" + "see" => $MYSITE . "mirroring-troubles.php#multiviews", + "got" => var_export($ctype), ); } @@ -83,6 +86,7 @@ function run_self_tests() { return array( "name" => "Var Handler", "see" => $MYSITE . "mirroring-troubles.php#var", + "got" => var_export($header), ); }