diff options
Diffstat (limited to 'test/libraries/core/PMA_headerLocation_test.php')
-rw-r--r-- | test/libraries/core/PMA_headerLocation_test.php | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/test/libraries/core/PMA_headerLocation_test.php b/test/libraries/core/PMA_headerLocation_test.php index 012ba6174b..063c51243e 100644 --- a/test/libraries/core/PMA_headerLocation_test.php +++ b/test/libraries/core/PMA_headerLocation_test.php @@ -257,26 +257,17 @@ class PMA_HeaderLocation_Test extends PHPUnit_Framework_TestCase $testUri_html = htmlspecialchars($testUri); $testUri_js = PMA_escapeJsString($testUri); - $header = "<html><head><title>- - -</title>\n" . - "<meta http-equiv=\"expires\" content=\"0\">\n" . - "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n" . - "<meta http-equiv=\"Cache-Control\" content=\"no-cache\">\n" . - "<meta http-equiv=\"Refresh\" content=\"0;url=" . $testUri_html - . "\">\n" . - "<script type=\"text/javascript\">\n" . - "//<![CDATA[\n" . - "setTimeout(\"window.location = unescape('\"" . $testUri_js - . "\"')\", 2000);\n" . - "//]]>\n" . - "</script>\n" . - "</head>\n" . - "<body>\n" . - "<script type=\"text/javascript\">\n" . - "//<![CDATA[\n" . - "document.write('<p><a href=\"" . $testUri_html . "\">" - . __('Go') . "</a></p>');\n" . - "//]]>\n" . - "</script></body></html>\n"; + $header = "<html><head><title>- - -</title> + <meta http-equiv=\"expires\" content=\"0\">" + . "<meta http-equiv=\"Pragma\" content=\"no-cache\">" + . "<meta http-equiv=\"Cache-Control\" content=\"no-cache\">" + . "<meta http-equiv=\"Refresh\" content=\"0;url=" . $testUri_html . "\">" + . "<script type=\"text/javascript\">//<![CDATA[ + setTimeout(\"window.location = unescape('" . $testUri_js . "')\", 2000); + //]]></script></head> +<body><script type=\"text/javascript\">//<![CDATA[ + document.write('<p><a href=\"" . $testUri_html . "\">" . __('Go') . "</a></p>'); + //]]></script></body></html>"; $this->expectOutputString($header); |