mirror of
https://github.com/mrclay/minify.git
synced 2025-02-24 17:02:31 +01:00
min/builder/index.php : + note about CSS imports HISTORY.txt and README.txt additions some text file renaming tools removed
30 lines
865 B
PHP
30 lines
865 B
PHP
<?php
|
|
|
|
require_once '_inc.php';
|
|
|
|
require_once 'Minify/CSS/UriRewriter.php';
|
|
|
|
function test_Minify_CSS_UriRewriter()
|
|
{
|
|
global $thisDir;
|
|
|
|
$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'
|
|
,$thisDir
|
|
);
|
|
|
|
$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";
|
|
}
|
|
}
|
|
}
|
|
|
|
test_Minify_CSS_UriRewriter(); |