1
0
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:
Elan Ruusamäe
2016-12-06 17:04:34 +02:00
parent ed209f9a84
commit 005dc26e22

View File

@@ -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());
}