mirror of
https://github.com/mrclay/minify.git
synced 2025-08-05 21:57:53 +02:00
tests: skip rather than fail if nailgun.jar is missing
This commit is contained in:
@@ -20,7 +20,7 @@ class MinifyNailgunClosureCompilerTest extends TestCase
|
||||
/**
|
||||
* Test minimisation with the minimum necessary settings
|
||||
*/
|
||||
public function test2()
|
||||
public function test1()
|
||||
{
|
||||
$this->assertHasJar();
|
||||
$src = "
|
||||
@@ -40,8 +40,10 @@ class MinifyNailgunClosureCompilerTest extends TestCase
|
||||
protected function assertHasJar()
|
||||
{
|
||||
$this->assertNotEmpty(Minify_ClosureCompiler::$jarFile);
|
||||
$this->assertNotEmpty(Minify_NailgunClosureCompiler::$ngJarFile);
|
||||
try {
|
||||
$this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar");
|
||||
$this->assertFileExists(Minify_NailgunClosureCompiler::$ngJarFile, "Have nailgun.jar");
|
||||
} catch (Exception $e) {
|
||||
$this->markTestSkipped($e->getMessage());
|
||||
}
|
||||
|
Reference in New Issue
Block a user