1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-07 22:56:33 +02:00

YUI test: ensure jar is in test dir as closure compiler test

This commit is contained in:
Elan Ruusamäe
2015-11-19 11:29:00 +02:00
committed by Steve Clay
parent 79bcb7d5fe
commit e328c0b4af
2 changed files with 16 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ class MinifyClosureCompilerTest extends TestCase
*/
public function test2()
{
$this->assertHasCompilerJar();
$this->assertHasJar();
$src = "
(function (window, undefined){
function addOne(input) {
@@ -59,7 +59,7 @@ class MinifyClosureCompilerTest extends TestCase
*/
public function test3()
{
$this->assertHasCompilerJar();
$this->assertHasJar();
$src = "function unused() {};";
$minExpected = '';
$minOutput = Minify_ClosureCompiler::minify($src, array(
@@ -68,7 +68,7 @@ class MinifyClosureCompilerTest extends TestCase
$this->assertSame($minExpected, $minOutput, 'advanced optimizations');
}
protected function assertHasCompilerJar()
protected function assertHasJar()
{
$this->assertNotEmpty(Minify_ClosureCompiler::$jarFile);
$this->assertFileExists(Minify_ClosureCompiler::$jarFile, "Have closure compiler compiler.jar");