mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 00:54:35 +02:00
closure compiler: make it work with all tests run at same time
This commit is contained in:
committed by
Steve Clay
parent
47c2af74d6
commit
830640c0e1
@@ -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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user