From 97a33bef5d04608b656beb47a2ab97e301734fcb Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Fri, 12 Sep 2008 03:42:45 +0000 Subject: [PATCH] test_Minify.php : fixed test of Last-Modified time. --- min_unit_tests/test_Minify.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/min_unit_tests/test_Minify.php b/min_unit_tests/test_Minify.php index ba57d99..20e96ac 100644 --- a/min_unit_tests/test_Minify.php +++ b/min_unit_tests/test_Minify.php @@ -56,7 +56,10 @@ function test_Minify() // Test minifying JS and serving with Expires header $content = preg_replace('/\\r\\n?/', "\n", file_get_contents($minifyTestPath . '/minified.js')); - $lastModified = filemtime($minifyTestPath . '/minified.js'); + $lastModified = max( + filemtime($minifyTestPath . '/email.js') + ,filemtime($minifyTestPath . '/QueryString.js') + ); $expected = array( 'success' => true ,'statusCode' => 200