From 830640c0e1cc6e7b596051565bd3733cff7c60ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 18 Nov 2015 17:36:33 +0200 Subject: [PATCH] closure compiler: make it work with all tests run at same time --- tests/MinifyClosureCompilerTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/MinifyClosureCompilerTest.php b/tests/MinifyClosureCompilerTest.php index bd9e48a..813003d 100644 --- a/tests/MinifyClosureCompilerTest.php +++ b/tests/MinifyClosureCompilerTest.php @@ -17,10 +17,11 @@ class MinifyClosureCompilerTest extends TestCase } /* - * Test minification w/o setting the necessary settings + * Test minimisation w/o setting the necessary settings */ public function test1() { + // clear params Minify_ClosureCompiler::$jarFile = null; Minify_ClosureCompiler::$tempDir = null; try { @@ -29,10 +30,12 @@ class MinifyClosureCompilerTest extends TestCase } catch (Exception $e) { $this->assertInstanceOf('Minify_ClosureCompiler_Exception', $e); } + // redo init to make other tests pass + self::setupBeforeClass(); } /** - * Test minification with the minimum necessary settings + * Test minimisation with the minimum necessary settings */ public function test2() { @@ -52,7 +55,7 @@ class MinifyClosureCompilerTest extends TestCase } /** - * Test minification with advanced compilation level + * Test minimisation with advanced compilation level */ public function test3() { @@ -67,6 +70,7 @@ class MinifyClosureCompilerTest extends TestCase protected function assertHasCompilerJar() { + $this->assertNotEmpty(Minify_ClosureCompiler::$jarFile); $this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar"); } } \ No newline at end of file