Add test for phpcs error code

This commit is contained in:
Payton Swick 2017-10-26 12:20:53 -04:00
parent aca66a54a5
commit 40f5e54198
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
Execute(errors should include code):
AssertEqual
\ [{'lnum': 18, 'col': 3, 'type': 'E', '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)',
\ ])