mirror of
https://github.com/mrclay/minify.git
synced 2025-08-14 10:05:59 +02:00
test_Minify_Build.php : allow running test file directly
test_Minify.php : clearer unit test language
This commit is contained in:
@@ -49,7 +49,7 @@ function test_Minify()
|
|||||||
! class_exists('HTTP_Encoder', false)
|
! class_exists('HTTP_Encoder', false)
|
||||||
&& ! class_exists('Minify_CSS', false)
|
&& ! class_exists('Minify_CSS', false)
|
||||||
&& ! class_exists('Minify_Cache', false)
|
&& ! class_exists('Minify_Cache', false)
|
||||||
,'Encoder.php, CSS.php, Cache.php not loaded'
|
,'Minify : encoding, cache, and minifier classes aren\'t loaded for 304s'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Test minifying JS and serving with Expires header
|
// Test minifying JS and serving with Expires header
|
||||||
|
@@ -19,6 +19,7 @@ function test_Minify_Build()
|
|||||||
assertTrue($maxTime == $b->lastModified
|
assertTrue($maxTime == $b->lastModified
|
||||||
,'Minify_Build : multiple file paths');
|
,'Minify_Build : multiple file paths');
|
||||||
|
|
||||||
|
require_once 'Minify.php';
|
||||||
$b = new Minify_Build(array(
|
$b = new Minify_Build(array(
|
||||||
$file1
|
$file1
|
||||||
,new Minify_Source(array('filepath' => $file2))
|
,new Minify_Source(array('filepath' => $file2))
|
||||||
|
Reference in New Issue
Block a user