From d89b71ab769c6fe11e3efa87d9e93ae4448ecc00 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 22 Nov 2006 12:18:39 +0000 Subject: [PATCH] - no more PHP-5.0 only tests --- tests/allowed_methods_001.phpt | 21 ------------------ tests/allowed_methods_001_logging.phpt | 21 ------------------ tests/etag_mode_001.phpt | 23 -------------------- tests/etag_mode_002.phpt | 23 -------------------- tests/etag_mode_003.phpt | 23 -------------------- tests/etag_mode_004.phpt | 24 --------------------- tests/etag_mode_011.phpt | 21 ------------------ tests/etag_mode_012.phpt | 21 ------------------ tests/etag_mode_013.phpt | 21 ------------------ tests/etag_mode_014.phpt | 22 ------------------- tests/redirect_001.phpt | 24 --------------------- tests/redirect_001_logging.phpt | 21 ------------------ tests/redirect_002.phpt | 27 ----------------------- tests/redirect_002_logging.phpt | 21 ------------------ tests/redirect_003.phpt | 24 --------------------- tests/redirect_003_logging.phpt | 21 ------------------ tests/send_data_007.phpt | 23 -------------------- tests/send_data_007_logging.phpt | 21 ------------------ tests/send_data_008.phpt | 20 ----------------- tests/send_data_009.phpt | 22 ------------------- tests/send_failed_precond_002.phpt | 21 ------------------ tests/send_file_001.phpt | 28 ------------------------ tests/send_file_002.phpt | 23 -------------------- tests/send_file_003.phpt | 23 -------------------- tests/send_file_004.phpt | 23 -------------------- tests/send_file_006.phpt | 30 -------------------------- tests/send_file_007.phpt | 18 ---------------- tests/send_ifrange_002.phpt | 25 --------------------- tests/send_ifrange_004.phpt | 23 -------------------- 29 files changed, 658 deletions(-) delete mode 100644 tests/allowed_methods_001.phpt delete mode 100644 tests/allowed_methods_001_logging.phpt delete mode 100644 tests/etag_mode_001.phpt delete mode 100644 tests/etag_mode_002.phpt delete mode 100644 tests/etag_mode_003.phpt delete mode 100644 tests/etag_mode_004.phpt delete mode 100644 tests/etag_mode_011.phpt delete mode 100644 tests/etag_mode_012.phpt delete mode 100644 tests/etag_mode_013.phpt delete mode 100644 tests/etag_mode_014.phpt delete mode 100644 tests/redirect_001.phpt delete mode 100644 tests/redirect_001_logging.phpt delete mode 100644 tests/redirect_002.phpt delete mode 100644 tests/redirect_002_logging.phpt delete mode 100644 tests/redirect_003.phpt delete mode 100644 tests/redirect_003_logging.phpt delete mode 100644 tests/send_data_007.phpt delete mode 100644 tests/send_data_007_logging.phpt delete mode 100644 tests/send_data_008.phpt delete mode 100644 tests/send_data_009.phpt delete mode 100644 tests/send_failed_precond_002.phpt delete mode 100644 tests/send_file_001.phpt delete mode 100644 tests/send_file_002.phpt delete mode 100644 tests/send_file_003.phpt delete mode 100644 tests/send_file_004.phpt delete mode 100644 tests/send_file_006.phpt delete mode 100644 tests/send_file_007.phpt delete mode 100644 tests/send_ifrange_002.phpt delete mode 100644 tests/send_ifrange_004.phpt diff --git a/tests/allowed_methods_001.phpt b/tests/allowed_methods_001.phpt deleted file mode 100644 index e0940b3..0000000 --- a/tests/allowed_methods_001.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -allowed methods ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Status: 405 -Content-type: %s -X-Powered-By: PHP/%s -Allow: POST - diff --git a/tests/allowed_methods_001_logging.phpt b/tests/allowed_methods_001_logging.phpt deleted file mode 100644 index 8c2e341..0000000 --- a/tests/allowed_methods_001_logging.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -logging allowed methods ---SKIPIF-- - ---ENV-- -HTTP_HOST=example.com ---FILE-- - ---EXPECTF-- -%sTEST -%d%d%d%d-%d%d-%d%d %d%d:%d%d:%d%d [405-ALLOWED] Allow: POST <%s> -Done diff --git a/tests/etag_mode_001.phpt b/tests/etag_mode_001.phpt deleted file mode 100644 index 809efee..0000000 --- a/tests/etag_mode_001.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -crc32 etag (may fail because PHPs crc32 is actually crc32b) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -Accept-Ranges: bytes -ETag: "4e818847" -Content-Length: 4 - -abc diff --git a/tests/etag_mode_002.phpt b/tests/etag_mode_002.phpt deleted file mode 100644 index 3312f32..0000000 --- a/tests/etag_mode_002.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -sha1 etag ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -Accept-Ranges: bytes -ETag: "03cfd743661f07975fa2f1220c5194cbaff48451" -Content-Length: 4 - -abc diff --git a/tests/etag_mode_003.phpt b/tests/etag_mode_003.phpt deleted file mode 100644 index fd67461..0000000 --- a/tests/etag_mode_003.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -md5 etag ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -Accept-Ranges: bytes -ETag: "0bee89b07a248e27c83fc3d5951213c1" -Content-Length: 4 - -abc diff --git a/tests/etag_mode_004.phpt b/tests/etag_mode_004.phpt deleted file mode 100644 index 5ec9f22..0000000 --- a/tests/etag_mode_004.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -ext/hash etag ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -Accept-Ranges: bytes -ETag: "edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb" -Content-Length: 4 - -abc diff --git a/tests/etag_mode_011.phpt b/tests/etag_mode_011.phpt deleted file mode 100644 index 1d6f039..0000000 --- a/tests/etag_mode_011.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -ob crc32 etag (may fail because PHPs crc32 is actually crc32b) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -ETag: "4e818847" - -abc diff --git a/tests/etag_mode_012.phpt b/tests/etag_mode_012.phpt deleted file mode 100644 index 1e4d779..0000000 --- a/tests/etag_mode_012.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -ob sha1 etag ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -ETag: "03cfd743661f07975fa2f1220c5194cbaff48451" - -abc diff --git a/tests/etag_mode_013.phpt b/tests/etag_mode_013.phpt deleted file mode 100644 index 3c354f8..0000000 --- a/tests/etag_mode_013.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -ob md5 etag ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -ETag: "0bee89b07a248e27c83fc3d5951213c1" - -abc diff --git a/tests/etag_mode_014.phpt b/tests/etag_mode_014.phpt deleted file mode 100644 index bcdefca..0000000 --- a/tests/etag_mode_014.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -ob ext/hash etag ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -ETag: "edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb" - -abc diff --git a/tests/redirect_001.phpt b/tests/redirect_001.phpt deleted file mode 100644 index f85d98f..0000000 --- a/tests/redirect_001.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -http_redirect() with params ---SKIPIF-- - ---ENV-- -HTTP_HOST=localhost ---FILE-- - 1, 'b' => 2)); -?> ---EXPECTF-- -Status: 302 -Content-type: %s -X-Powered-By: PHP/%s -Location: http://localhost/redirect?a=1&b=2 - -Redirecting to http://localhost/redirect?a=1&b=2. - diff --git a/tests/redirect_001_logging.phpt b/tests/redirect_001_logging.phpt deleted file mode 100644 index 273f8b8..0000000 --- a/tests/redirect_001_logging.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -logging redirects ---SKIPIF-- - ---ENV-- -HTTP_HOST=example.com ---FILE-- - ---EXPECTF-- -%sTEST -%d%d%d%d-%d%d-%d%d %d%d:%d%d:%d%d [302-REDIRECT] Location: http%s <%s> -Done diff --git a/tests/redirect_002.phpt b/tests/redirect_002.phpt deleted file mode 100644 index 29985f3..0000000 --- a/tests/redirect_002.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -http_redirect() with session ---SKIPIF-- - ---ENV-- -HTTP_HOST=localhost ---FILE-- - 1), true); -?> ---EXPECTF-- -Status: 302 -Content-type: %s -X-Powered-By: PHP/%s -Set-Cookie: PHPSESSID=%s; path=/ -Expires: %s -Cache-Control: %s -Pragma: %s -Location: http://localhost/redirect?a=1&PHPSESSID=%s diff --git a/tests/redirect_002_logging.phpt b/tests/redirect_002_logging.phpt deleted file mode 100644 index 273f8b8..0000000 --- a/tests/redirect_002_logging.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -logging redirects ---SKIPIF-- - ---ENV-- -HTTP_HOST=example.com ---FILE-- - ---EXPECTF-- -%sTEST -%d%d%d%d-%d%d-%d%d %d%d:%d%d:%d%d [302-REDIRECT] Location: http%s <%s> -Done diff --git a/tests/redirect_003.phpt b/tests/redirect_003.phpt deleted file mode 100644 index 6396e09..0000000 --- a/tests/redirect_003.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -http_redirect() permanent ---SKIPIF-- - ---ENV-- -HTTP_HOST=localhost ---FILE-- - ---EXPECTF-- -Status: 301 -Content-type: %s -X-Powered-By: PHP/%s -Location: http://localhost/redirect - -Redirecting to http://localhost/redirect. - diff --git a/tests/redirect_003_logging.phpt b/tests/redirect_003_logging.phpt deleted file mode 100644 index eb282d2..0000000 --- a/tests/redirect_003_logging.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -logging redirects ---SKIPIF-- - ---ENV-- -HTTP_HOST=example.com ---FILE-- - ---EXPECTF-- -%sTEST -%d%d%d%d-%d%d-%d%d %d%d:%d%d:%d%d [301-REDIRECT] Location: http%s <%s> -Done diff --git a/tests/send_data_007.phpt b/tests/send_data_007.phpt deleted file mode 100644 index 478d58d..0000000 --- a/tests/send_data_007.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -http_send_data() etag caching ---SKIPIF-- - ---ENV-- -HTTP_IF_NONE_MATCH="0bee89b07a248e27c83fc3d5951213c1" ---FILE-- - ---EXPECTF-- -Status: 304 -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -%s diff --git a/tests/send_data_007_logging.phpt b/tests/send_data_007_logging.phpt deleted file mode 100644 index ed7719b..0000000 --- a/tests/send_data_007_logging.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -logging caching ---SKIPIF-- - ---ENV-- -HTTP_HOST=example.com ---FILE-- - ---EXPECTF-- -%sTEST -%d%d%d%d-%d%d-%d%d %d%d:%d%d:%d%d [304-CACHE] ETag: "%s" <%s> -Done diff --git a/tests/send_data_008.phpt b/tests/send_data_008.phpt deleted file mode 100644 index f5d4e85..0000000 --- a/tests/send_data_008.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -http_send_data() HTTP_SENDBUF_SIZE long string ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Accept-Ranges: bytes -Content-Length: 20 - -00000000000000000000 diff --git a/tests/send_data_009.phpt b/tests/send_data_009.phpt deleted file mode 100644 index 1d8358d..0000000 --- a/tests/send_data_009.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -http_send_data() last modified caching ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Cache-Control: private, must-revalidate, max-age=0 -Last-Modified: %s, %d %s %d %d:%d:%d GMT -Accept-Ranges: bytes -Content-Length: 4 - -abc diff --git a/tests/send_failed_precond_002.phpt b/tests/send_failed_precond_002.phpt deleted file mode 100644 index 6494ffd..0000000 --- a/tests/send_failed_precond_002.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -http_send() failed precondition ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Status: 412 -X-Powered-By: %s -Cache-Control: private, must-revalidate, max-age=0 -Last-Modified: %s -Accept-Ranges: bytes diff --git a/tests/send_file_001.phpt b/tests/send_file_001.phpt deleted file mode 100644 index c105075..0000000 --- a/tests/send_file_001.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -http_send_file() ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Accept-Ranges: bytes -Content-Length: 1010 - -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 diff --git a/tests/send_file_002.phpt b/tests/send_file_002.phpt deleted file mode 100644 index 1bcd07d..0000000 --- a/tests/send_file_002.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -http_send_file() NUM-NUM range ---SKIPIF-- - ---ENV-- -HTTP_RANGE=bytes=5-9 ---FILE-- - ---EXPECTF-- -Status: 206 -Content-type: %s -X-Powered-By: PHP/%s -Accept-Ranges: bytes -Content-Range: bytes 5-9/1010 -Content-Length: 5 - -56789 diff --git a/tests/send_file_003.phpt b/tests/send_file_003.phpt deleted file mode 100644 index 8a17f58..0000000 --- a/tests/send_file_003.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -http_send_file() NIL-NUM range ---SKIPIF-- - ---ENV-- -HTTP_RANGE=bytes=-9 ---FILE-- - ---EXPECTF-- -Status: 206 -Content-type: %s -X-Powered-By: PHP/%s -Accept-Ranges: bytes -Content-Range: bytes 1001-1009/1010 -Content-Length: 9 - -23456789 diff --git a/tests/send_file_004.phpt b/tests/send_file_004.phpt deleted file mode 100644 index 5dcee32..0000000 --- a/tests/send_file_004.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -http_send_file() NUM-NIL range ---SKIPIF-- - ---ENV-- -HTTP_RANGE=bytes=1000- ---FILE-- - ---EXPECTF-- -Status: 206 -Content-type: %s -X-Powered-By: PHP/%s -Accept-Ranges: bytes -Content-Range: bytes 1000-1009/1010 -Content-Length: 10 - -123456789 diff --git a/tests/send_file_006.phpt b/tests/send_file_006.phpt deleted file mode 100644 index fdca630..0000000 --- a/tests/send_file_006.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -http_send_file() syntactically invalid range ---SKIPIF-- - ---ENV-- -HTTP_RANGE=bytes=xxx ---FILE-- - ---EXPECTF-- -Content-type: %s -X-Powered-By: PHP/%s -Accept-Ranges: bytes -Content-Length: 1010 - -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 diff --git a/tests/send_file_007.phpt b/tests/send_file_007.phpt deleted file mode 100644 index 966129c..0000000 --- a/tests/send_file_007.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -http_send_file() oversized range ---SKIPIF-- - ---ENV-- -HTTP_RANGE=bytes=-1111 ---FILE-- - ---EXPECTF-- -Status: 416 -Content-type: %s -X-Powered-By: PHP/%s diff --git a/tests/send_ifrange_002.phpt b/tests/send_ifrange_002.phpt deleted file mode 100644 index 60053e9..0000000 --- a/tests/send_ifrange_002.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -http_send() If-Range ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Status: 206 -X-Powered-By: %s -Cache-Control: private, must-revalidate, max-age=0 -ETag: "abc" -Accept-Ranges: bytes -Content-Range: bytes 0-1/%d -Content-Length: 2 - - ---FILE-- - ---EXPECTF-- -X-Powered-By: %s -Cache-Control: private, must-revalidate, max-age=0 -ETag: "abc" -Accept-Ranges: bytes -Content-Length: %d - -%s -- 2.30.2