mirror of
https://github.com/mrclay/minify.git
synced 2025-08-16 02:54:33 +02:00
Apply php-cs-fixer fixers
- braces - function_declaration - lowercase_keywords - method_argument_space - no_spaces_inside_parenthesis - no_trailing_whitespace - no_trailing_whitespace_in_comment - single_blank_line_at_eof
This commit is contained in:
@@ -32,8 +32,11 @@ class JsClosureCompilerTest extends TestCase
|
||||
$this->compile($src);
|
||||
} catch (Minify_JS_ClosureCompiler_Exception $e) {
|
||||
}
|
||||
$this->assertInstanceOf('Minify_JS_ClosureCompiler_Exception', $e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception');
|
||||
$this->assertInstanceOf(
|
||||
'Minify_JS_ClosureCompiler_Exception',
|
||||
$e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception'
|
||||
);
|
||||
}
|
||||
|
||||
// Test maximum byte size check (default)
|
||||
@@ -46,8 +49,11 @@ class JsClosureCompilerTest extends TestCase
|
||||
$this->compile($src);
|
||||
} catch (Minify_JS_ClosureCompiler_Exception $e) {
|
||||
}
|
||||
$this->assertInstanceOf('Minify_JS_ClosureCompiler_Exception', $e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception');
|
||||
$this->assertInstanceOf(
|
||||
'Minify_JS_ClosureCompiler_Exception',
|
||||
$e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception'
|
||||
);
|
||||
|
||||
$expected = 'POST content larger than ' . Minify_JS_ClosureCompiler::DEFAULT_MAX_BYTES . ' bytes';
|
||||
$this->assertEquals($expected, $e->getMessage(), 'Message must tell how big maximum byte size is');
|
||||
@@ -76,8 +82,11 @@ class JsClosureCompilerTest extends TestCase
|
||||
));
|
||||
} catch (Minify_JS_ClosureCompiler_Exception $e) {
|
||||
}
|
||||
$this->assertInstanceOf('Minify_JS_ClosureCompiler_Exception', $e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception');
|
||||
$this->assertInstanceOf(
|
||||
'Minify_JS_ClosureCompiler_Exception',
|
||||
$e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception'
|
||||
);
|
||||
|
||||
$expected = 'POST content larger than ' . $allowedBytes . ' bytes';
|
||||
$this->assertEquals($expected, $e->getMessage(), 'Message must tell how big maximum byte size is');
|
||||
@@ -96,8 +105,11 @@ class JsClosureCompilerTest extends TestCase
|
||||
));
|
||||
} catch (Minify_JS_ClosureCompiler_Exception $e) {
|
||||
}
|
||||
$this->assertInstanceOf('Minify_JS_ClosureCompiler_Exception', $e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception');
|
||||
$this->assertInstanceOf(
|
||||
'Minify_JS_ClosureCompiler_Exception',
|
||||
$e,
|
||||
'Throws Minify_JS_ClosureCompiler_Exception'
|
||||
);
|
||||
}
|
||||
|
||||
public function test7()
|
||||
|
Reference in New Issue
Block a user