summaryrefslogtreecommitdiff
path: root/test/handler/test_php_phan_handler.vader
blob: 237479256d83107acedb46c84aa985814d51e67f (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/phan.vim

After:
  call ale#linter#Reset()

Execute(The php static analyzer handler should parse errors from phan):
  AssertEqual
  \ [
  \   {
  \     'lnum': 25,
  \     'type': 'W',
  \     'text': 'Return type of getValidator is undeclared type \Respect\Validation\Validator',
  \   },
  \   {
  \     'lnum': 66,
  \     'type': 'W',
  \     'text': 'Call to method string from undeclared class \Respect\Validation\Validator',
  \   },
  \ ],
  \ ale_linters#php#phan#Handle(347, [
  \ "example.php:25 PhanUndeclaredTypeReturnType Return type of getValidator is undeclared type \\Respect\\Validation\\Validator",
  \ "example.php:66 PhanUndeclaredClassMethod Call to method string from undeclared class \\Respect\\Validation\\Validator",
  \ ])