Created
June 23, 2012 01:22
-
-
Save jrbasso/2976117 to your computer and use it in GitHub Desktop.
PHP_CodeSniffer bug on ScopeIndent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc b/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc | |
index 848fc56..0d0e224 100644 | |
--- a/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc | |
+++ b/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc | |
@@ -37,6 +37,16 @@ class Test | |
} | |
} | |
+ function hello4() | |
+ { | |
+ array_map($array, function(&$entry) { | |
+ $ok = true; | |
+ if ($entry) { | |
+ echo 'test'; | |
+ } | |
+ }); | |
+ } | |
+ | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was 1 failure: | |
1) Generic_Tests_WhiteSpace_ScopeIndentUnitTest::getErrorList | |
[LINE 44] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected 30 spaces, found 12 | |
[LINE 45] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 34 spaces, found 16 | |
[LINE 58] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 68] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 8 spaces, found 4 | |
[LINE 123] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 126] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 133] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 4 spaces, found 3 | |
[LINE 136] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 4 spaces, found 3 | |
[LINE 224] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 225] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 234] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 4 spaces, found 3 | |
[LINE 235] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 4 spaces, found 3 | |
[LINE 279] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 280] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 281] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 282] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 283] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 284] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 289] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected 12 spaces, found 8 | |
[LINE 290] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected 16 spaces, found 12 | |
[LINE 291] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 20 spaces, found 16 | |
[LINE 292] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected 16 spaces, found 12 | |
[LINE 293] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected 20 spaces, found 16 | |
[LINE 294] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected 24 spaces, found 16 | |
[LINE 311] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 321] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 4 spaces, found 3 | |
[LINE 336] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 346] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 8 spaces, found 4 | |
[LINE 349] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 359] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 8 spaces, found 4 | |
[LINE 380] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 387] Expected 1 error(s) in ScopeIndentUnitTest.inc but found 0 error(s). | |
[LINE 390] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 12 spaces, found 8 | |
[LINE 407] Expected 0 error(s) in ScopeIndentUnitTest.inc but found 1 error(s). The error(s) found were: | |
-> Line indented incorrectly; expected at least 8 spaces, found 7 | |
/home/jrbasso/tmp/PHP_CodeSniffer/tests/Standards/AbstractSniffUnitTest.php:183 | |
/home/jrbasso/tmp/PHP_CodeSniffer/tests/TestSuite.php:47 | |
FAILURES! | |
Tests: 210, Assertions: 150, Failures: 1, Skipped: 3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment