diff --git a/min_unit_tests/test_Minify_Build.php b/min_unit_tests/test_Minify_Build.php deleted file mode 100644 index 803f58e..0000000 --- a/min_unit_tests/test_Minify_Build.php +++ /dev/null @@ -1,33 +0,0 @@ -lastModified == filemtime($file1) - ,'Minify_Build : single file path'); - - $b = new Minify_Build(array($file1, $file2)); - assertTrue($maxTime == $b->lastModified - ,'Minify_Build : multiple file paths'); - - $b = new Minify_Build(array( - $file1 - ,new Minify_Source(array('filepath' => $file2)) - )); - - assertTrue($maxTime == $b->lastModified - ,'Minify_Build : file path and a Minify_Source'); - assertTrue($b->uri('/path') == "/path?{$maxTime}" - ,'Minify_Build : uri() with no querystring'); - assertTrue($b->uri('/path?hello') == "/path?hello&{$maxTime}" - ,'Minify_Build : uri() with existing querystring'); -} - -test_Minify_Build(); \ No newline at end of file diff --git a/min_unit_tests/test_all.php b/min_unit_tests/test_all.php index e3d6c3c..540fbd6 100644 --- a/min_unit_tests/test_all.php +++ b/min_unit_tests/test_all.php @@ -1,7 +1,6 @@ assertEquals($b->lastModified, filemtime($file1), 'single file path'); + + $b = new Minify_Build(array($file1, $file2)); + $this->assertEquals($maxTime, $b->lastModified, 'multiple file paths'); + + $b = new Minify_Build(array($file1, new Minify_Source(array('filepath' => $file2)))); + + $this->assertEquals($maxTime, $b->lastModified, 'file path and a Minify_Source'); + $this->assertEquals($b->uri('/path'), "/path?{$maxTime}", 'uri() with no querystring'); + $this->assertEquals($b->uri('/path?hello'), "/path?hello&{$maxTime}", 'uri() with existing querystring'); + } +} \ No newline at end of file