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_Minify_HTML.php | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 plugins/Minify/extlib/minify/min_unit_tests/test_Minify_HTML.php (limited to 'plugins/Minify/extlib/minify/min_unit_tests/test_Minify_HTML.php') diff --git a/plugins/Minify/extlib/minify/min_unit_tests/test_Minify_HTML.php b/plugins/Minify/extlib/minify/min_unit_tests/test_Minify_HTML.php deleted file mode 100644 index 69aeff568..000000000 --- a/plugins/Minify/extlib/minify/min_unit_tests/test_Minify_HTML.php +++ /dev/null @@ -1,59 +0,0 @@ - array('Minify_CSS', 'minify') - ,'jsMinifier' => array('JSMin', 'minify') - )); - $time = microtime(true) - $time; - - $passed = assertTrue($minExpected === $minOutput, 'Minify_HTML'); - - if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) { - if ($passed) { - echo "\n---Source: ", strlen($src), " bytes\n" - , "---Output: ", strlen($minOutput), " bytes (", round($time * 1000), " ms)\n\n{$minOutput}\n\n\n"; - } else { - echo "\n---Output: ", strlen($minOutput), " bytes (", round($time * 1000), " ms)\n\n{$minOutput}\n\n" - , "---Expected: ", strlen($minExpected), " bytes\n\n{$minExpected}\n\n" - , "---Source: ", strlen($src), " bytes\n\n{$src}\n\n\n"; - } - } - - $src = file_get_contents($thisDir . '/_test_files/html/before2.html'); - $minExpected = file_get_contents($thisDir . '/_test_files/html/before2.min.html'); - - $time = microtime(true); - $minOutput = Minify_HTML::minify($src, array( - 'cssMinifier' => array('Minify_CSS', 'minify') - ,'jsMinifier' => array('JSMin', 'minify') - )); - $time = microtime(true) - $time; - - $passed = assertTrue($minExpected === $minOutput, 'Minify_HTML'); - - if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) { - if ($passed) { - echo "\n---Source: ", strlen($src), " bytes\n" - , "---Output: ", strlen($minOutput), " bytes (", round($time * 1000), " ms)\n\n{$minOutput}\n\n\n"; - } else { - echo "\n---Output: ", strlen($minOutput), " bytes (", round($time * 1000), " ms)\n\n{$minOutput}\n\n" - , "---Expected: ", strlen($minExpected), " bytes\n\n{$minExpected}\n\n" - , "---Source: ", strlen($src), " bytes\n\n{$src}\n\n\n"; - } - } -} - -test_HTML(); -- cgit v1.2.3-54-g00ecf