diff --git a/tests/HTTPConditionalGetTest.php b/tests/HTTPConditionalGetTest.php index 6b5aa94..e6365f4 100644 --- a/tests/HTTPConditionalGetTest.php +++ b/tests/HTTPConditionalGetTest.php @@ -1,6 +1,8 @@ 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) @@ -42,7 +46,8 @@ 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'); @@ -71,7 +76,8 @@ 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'); @@ -90,7 +96,8 @@ 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() diff --git a/tests/LessSourceTest.php b/tests/LessSourceTest.php index 753e0c6..037d055 100644 --- a/tests/LessSourceTest.php +++ b/tests/LessSourceTest.php @@ -1,6 +1,8 @@ false - , 'minAppUri' => '/myApp/min/' - , 'groupsConfigFile' => self::$test_files . '/htmlHelper_groupsConfig.php' + , + 'minAppUri' => '/myApp/min/' + , + 'groupsConfigFile' => self::$test_files . '/htmlHelper_groupsConfig.php' )); $this->assertEquals($expected, $actual, 'existing group'); @@ -69,7 +74,8 @@ class MinifyHTMLHelperTest extends TestCase )); $output = Minify_mtime(array( $obj - , 'css' + , + 'css' ), self::$test_files . '/htmlHelper_groupsConfig.php'); $this->assertEquals($maxTime, $output, 'utils.php : Minify_mtime w/ obj & group'); } diff --git a/tests/MinifyHTMLTest.php b/tests/MinifyHTMLTest.php index 6258a7b..42df046 100644 --- a/tests/MinifyHTMLTest.php +++ b/tests/MinifyHTMLTest.php @@ -1,6 +1,8 @@ assertEquals($expectedIncludes, Minify_ImportProcessor::$filesIncluded, 'included right files in right order'); + $this->assertEquals($expectedIncludes, Minify_ImportProcessor::$filesIncluded, + 'included right files in right order'); } } diff --git a/tests/MinifyLinesTest.php b/tests/MinifyLinesTest.php index ad6792f..bc30fdf 100644 --- a/tests/MinifyLinesTest.php +++ b/tests/MinifyLinesTest.php @@ -1,6 +1,12 @@ assertFalse(strpos($output, $defaultOptions['importWarning']), 'Issue 89 : don\'t warn about valid imports'); + $this->assertFalse(strpos($output, $defaultOptions['importWarning']), + 'Issue 89 : don\'t warn about valid imports'); // Test Issue 132 if (function_exists('mb_strlen') && ((int)ini_get('mbstring.func_overload') & 2)) { @@ -158,7 +165,8 @@ class MinifyTest extends TestCase 'encodeOutput' => false, )); - $this->assertEquals(77, $output['headers']['Content-Length'], 'Issue 132 : mbstring.func_overload shouldn\'t cause incorrect Content-Length'); + $this->assertEquals(77, $output['headers']['Content-Length'], + 'Issue 132 : mbstring.func_overload shouldn\'t cause incorrect Content-Length'); } // Test minifying CSS and responding with Etag/Last-Modified diff --git a/tests/MinifyYuiCSSTest.php b/tests/MinifyYuiCSSTest.php index 0cba638..b26cb15 100644 --- a/tests/MinifyYuiCSSTest.php +++ b/tests/MinifyYuiCSSTest.php @@ -1,6 +1,9 @@ assertHasJar(); } @@ -51,7 +55,7 @@ class MinifyYuiCSSTest extends TestCase { $this->assertNotEmpty(Minify_YUICompressor::$jarFile); try { - $this->assertFileExists(Minify_YUICompressor::$jarFile , "Have YUI yuicompressor.jar"); + $this->assertFileExists(Minify_YUICompressor::$jarFile, "Have YUI yuicompressor.jar"); } catch (Exception $e) { $this->markTestSkipped($e->getMessage()); } diff --git a/tests/ScssSourceTest.php b/tests/ScssSourceTest.php index b9099a5..aa2cdf9 100644 --- a/tests/ScssSourceTest.php +++ b/tests/ScssSourceTest.php @@ -1,6 +1,8 @@