summaryrefslogtreecommitdiff
path: root/test/handler/test_php_psalm_handler.vader
blob: fd62a467f349da166283afa0b672d656ecfdd452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Before:
  runtime ale_linters/php/psalm.vim

After:
  call ale#linter#Reset()

Execute(The php static analyzer handler should parse errors from psalm):
  AssertEqual
  \ [
  \   {
  \     'lnum': 1,
  \     'type': 'W',
  \     'text': 'somewarning',
  \   },
  \   {
  \     'lnum': 11,
  \     'type': 'E',
  \     'text': 'someerror',
  \   },
  \ ],
  \ ale_linters#php#psalm#Handle(347, [
  \ "/file:1:3:warning - somewarning",
  \ "/file:11:33:error - someerror",
  \ ])