From 0c955b7c88b41fa28d079eb639abb748583ab4eb Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Dec 2009 12:13:42 -0500 Subject: remove unit tests for minify --- .../minify/min_unit_tests/test_environment.php | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 plugins/Minify/extlib/minify/min_unit_tests/test_environment.php (limited to 'plugins/Minify/extlib/minify/min_unit_tests/test_environment.php') diff --git a/plugins/Minify/extlib/minify/min_unit_tests/test_environment.php b/plugins/Minify/extlib/minify/min_unit_tests/test_environment.php deleted file mode 100644 index f80156905..000000000 --- a/plugins/Minify/extlib/minify/min_unit_tests/test_environment.php +++ /dev/null @@ -1,100 +0,0 @@ - array( - 'method' => "GET", - 'header' => "Accept-Encoding: deflate, gzip\r\n" - ) - ))); - - $meta = stream_get_meta_data($fp); - - $passed = true; - foreach ($meta['wrapper_data'] as $i => $header) { - if ((preg_match('@^Content-Length: (\\d+)$@i', $header, $m) && $m[1] !== '6') - || preg_match('@^Content-Encoding:@i', $header, $m) - ) { - $passed = false; - break; - } - } - if ($passed && stream_get_contents($fp) !== 'World!') { - $passed = false; - } - assertTrue( - $passed - ,'environment : PHP/server does not auto-HTTP-encode content' - ); - fclose($fp); - - if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) { - if (! $passed) { - echo "\nReturned content should be 6 bytes and not HTTP encoded.\n" - . "Headers returned by: {$thisUrl}?hello=1\n\n"; - var_export($meta['wrapper_data']); - } - } -} - -test_environment(); -- cgit v1.2.3-54-g00ecf