1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-06 14:16:28 +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 * Test minimisation with the minimum necessary settings
*/ */
public function test2() public function test1()
{ {
$this->assertHasJar(); $this->assertHasJar();
$src = " $src = "
@@ -40,8 +40,10 @@ class MinifyNailgunClosureCompilerTest extends TestCase
protected function assertHasJar() protected function assertHasJar()
{ {
$this->assertNotEmpty(Minify_ClosureCompiler::$jarFile); $this->assertNotEmpty(Minify_ClosureCompiler::$jarFile);
$this->assertNotEmpty(Minify_NailgunClosureCompiler::$ngJarFile);
try { try {
$this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar"); $this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar");
$this->assertFileExists(Minify_NailgunClosureCompiler::$ngJarFile, "Have nailgun.jar");
} catch (Exception $e) { } catch (Exception $e) {
$this->markTestSkipped($e->getMessage()); $this->markTestSkipped($e->getMessage());
} }