diff options
author | Evan Prodromou <evan@status.net> | 2009-12-07 12:13:42 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-07 12:13:42 -0500 |
commit | 0c955b7c88b41fa28d079eb639abb748583ab4eb (patch) | |
tree | c6e3dd1597c9a96bc1e1851f6fd7b5acd5a4de6e /plugins/Minify/extlib/minify/min_unit_tests/test_Minify_CSS_UriRewriter.php | |
parent | 11dab47e2d91c7f88819a1576609d7ef7f63ee64 (diff) |
remove unit tests for minify
Diffstat (limited to 'plugins/Minify/extlib/minify/min_unit_tests/test_Minify_CSS_UriRewriter.php')
-rw-r--r-- | plugins/Minify/extlib/minify/min_unit_tests/test_Minify_CSS_UriRewriter.php | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/plugins/Minify/extlib/minify/min_unit_tests/test_Minify_CSS_UriRewriter.php b/plugins/Minify/extlib/minify/min_unit_tests/test_Minify_CSS_UriRewriter.php deleted file mode 100644 index 55f09b053..000000000 --- a/plugins/Minify/extlib/minify/min_unit_tests/test_Minify_CSS_UriRewriter.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php - -require_once '_inc.php'; - -require_once 'Minify/CSS/UriRewriter.php'; - -function test_Minify_CSS_UriRewriter() -{ - global $thisDir; - - Minify_CSS_UriRewriter::$debugText = ''; - $in = file_get_contents($thisDir . '/_test_files/css_uriRewriter/in.css'); - $expected = file_get_contents($thisDir . '/_test_files/css_uriRewriter/exp.css'); - $actual = Minify_CSS_UriRewriter::rewrite( - $in - ,$thisDir . '/_test_files/css_uriRewriter' // currentDir - ,$thisDir // use DOCUMENT_ROOT = '/full/path/to/min_unit_tests' - ); - - $passed = assertTrue($expected === $actual, 'Minify_CSS_UriRewriter'); - if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) { - echo "\n---Input:\n\n{$in}\n"; - echo "\n---Output: " .strlen($actual). " bytes\n\n{$actual}\n\n"; - if (!$passed) { - echo "---Expected: " .strlen($expected). " bytes\n\n{$expected}\n\n\n"; - } - - // show debugging only when test run directly - echo "--- Minify_CSS_UriRewriter::\$debugText\n\n" - , Minify_CSS_UriRewriter::$debugText; - } - - Minify_CSS_UriRewriter::$debugText = ''; - $in = '../../../../assets/skins/sam/sprite.png'; - $exp = '/yui/assets/skins/sam/sprite.png'; - $actual = Minify_CSS_UriRewriter::rewriteRelative( - $in - ,'sf_root_dir\web\yui\menu\assets\skins\sam' - ,'sf_root_dir\web' - ); - - $passed = assertTrue($exp === $actual, 'Minify_CSS_UriRewriter : Issue 99'); - if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) { - echo "\n---Input:\n\n{$in}\n"; - echo "\n---Output: " .strlen($actual). " bytes\n\n{$actual}\n\n"; - if (!$passed) { - echo "---Expected: " .strlen($exp). " bytes\n\n{$exp}\n\n\n"; - } - - // show debugging only when test run directly - echo "--- Minify_CSS_UriRewriter::\$debugText\n\n" - , Minify_CSS_UriRewriter::$debugText; - } -} - -test_Minify_CSS_UriRewriter();
\ No newline at end of file |