test_php_phpmd_handler.vader
1 Before: 2 runtime ale_linters/php/phpmd.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The php static analyzer handler should parse errors from phpmd): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 22, 12 \ 'type': 'W', 13 \ 'text': "Avoid unused local variables such as '$response'.", 14 \ }, 15 \ { 16 \ 'lnum': 14, 17 \ 'type': 'W', 18 \ 'text': "The method test uses an else expression. Else is never necessary and you can simplify the code to work without else.", 19 \ }, 20 \ ], 21 \ ale_linters#php#phpmd#Handle(347, [ 22 \ "example.php:22 Avoid unused local variables such as '$response'.", 23 \ "example.php:14 The method test uses an else expression. Else is never necessary and you can simplify the code to work without else.", 24 \ ])