This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/handler/test_php_phan_handler.vader
2021-02-02 17:34:59 +03:00

26 lines
854 B
Text

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',
\ 'filename': 'example.php',
\ },
\ {
\ 'lnum': 66,
\ 'type': 'W',
\ 'text': 'Call to method string from undeclared class \Respect\Validation\Validator',
\ 'filename': 'example.php',
\ },
\ ],
\ 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",
\ ])