mirror of
https://github.com/mrclay/minify.git
synced 2025-08-09 07:36:56 +02:00
YUI/Closure: mark test skipped if .jar not found
This commit is contained in:
committed by
Steve Clay
parent
e328c0b4af
commit
ed79a279a9
@@ -71,6 +71,10 @@ class MinifyClosureCompilerTest extends TestCase
|
|||||||
protected function assertHasJar()
|
protected function assertHasJar()
|
||||||
{
|
{
|
||||||
$this->assertNotEmpty(Minify_ClosureCompiler::$jarFile);
|
$this->assertNotEmpty(Minify_ClosureCompiler::$jarFile);
|
||||||
$this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar");
|
try {
|
||||||
|
$this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar");
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$this->markTestSkipped($e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -47,7 +47,11 @@ class MinifyYuiCSSTest extends TestCase
|
|||||||
|
|
||||||
protected function assertHasJar()
|
protected function assertHasJar()
|
||||||
{
|
{
|
||||||
$this->assertNotEmpty(Minify_YUICompressor::$jarFile );
|
$this->assertNotEmpty(Minify_YUICompressor::$jarFile);
|
||||||
$this->assertFileExists(Minify_YUICompressor::$jarFile , "Have YUI yuicompressor.jar");
|
try {
|
||||||
|
$this->assertFileExists(Minify_YUICompressor::$jarFile , "Have YUI yuicompressor.jar");
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$this->markTestSkipped($e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user