/ test / handler / test_php_phan_handler.vader
test_php_phan_handler.vader
 1  Before:
 2    runtime ale_linters/php/phan.vim
 3  
 4  After:
 5    call ale#linter#Reset()
 6  
 7  Execute(The php static analyzer handler should parse errors from phan):
 8    AssertEqual
 9    \ [
10    \   {
11    \     'lnum': 25,
12    \     'type': 'W',
13    \     'text': 'Return type of getValidator is undeclared type \Respect\Validation\Validator',
14    \     'filename': 'example.php',
15    \   },
16    \   {
17    \     'lnum': 66,
18    \     'type': 'W',
19    \     'text': 'Call to method string from undeclared class \Respect\Validation\Validator',
20    \     'filename': 'example.php',
21    \   },
22    \ ],
23    \ ale_linters#php#phan#Handle(347, [
24    \ "example.php:25 PhanUndeclaredTypeReturnType Return type of getValidator is undeclared type \\Respect\\Validation\\Validator",
25    \ "example.php:66 PhanUndeclaredClassMethod Call to method string from undeclared class \\Respect\\Validation\\Validator",
26    \ ])