diff options
Diffstat (limited to 'test/handler/test_phpcs_handler.vader')
-rw-r--r-- | test/handler/test_phpcs_handler.vader | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/handler/test_phpcs_handler.vader b/test/handler/test_phpcs_handler.vader new file mode 100644 index 00000000..18accece --- /dev/null +++ b/test/handler/test_phpcs_handler.vader @@ -0,0 +1,19 @@ +Before: + runtime ale_linters/php/phpcs.vim + +After: + call ale#linter#Reset() + +Execute(phpcs errors should be handled): + AssertEqual + \ [ + \ { + \ 'lnum': 18, + \ 'col': 3, + \ 'type': 'E', + \ 'sub_type': 'style', + \ 'text': 'Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)', + \ }], + \ ale_linters#php#phpcs#Handle(bufnr(''), [ + \ '/path/to/some-filename.php:18:3: error - Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)', + \ ]) |