aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/headers.php
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-12-04 07:39:27 +0100
committerjaubourg <j@ubourg.net>2012-12-04 07:40:12 +0100
commit228ab3ddae527f72cc3122a1c6115d7718bcfd57 (patch)
tree258539e5faade401feb4d54578f02584195705b9 /test/data/headers.php
parent3ab26340dcdf001da4e93df2f187a8343615673c (diff)
downloadjquery-228ab3ddae527f72cc3122a1c6115d7718bcfd57.tar.gz
jquery-228ab3ddae527f72cc3122a1c6115d7718bcfd57.zip
Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore.
Diffstat (limited to 'test/data/headers.php')
-rw-r--r--test/data/headers.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/data/headers.php b/test/data/headers.php
deleted file mode 100644
index 968f13f19..000000000
--- a/test/data/headers.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-header( "Sample-Header: Hello World" );
-header( "Empty-Header: " );
-header( "Sample-Header2: Hello World 2" );
-
-$headers = array();
-
-foreach( $_SERVER as $key => $value ) {
-
- $key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key );
- $headers[ $key ] = $value;
-
-}
-
-foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
- echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
-}