/ test / handler / test_tlint_handler.vader
test_tlint_handler.vader
 1  Before:
 2    runtime ale_linters/php/tlint.vim
 3  
 4  After:
 5    call ale#linter#Reset()
 6  
 7  Execute(The tlint handler should calculate line numbers):
 8    AssertEqual
 9    \ [
10    \   {
11    \     'lnum': '5', 
12    \     'col': 0, 
13    \     'sub_type': 
14    \     'style',
15    \     'type': 'W',
16    \     'text': ['! There should be no unused imports.', 'There should be no unused imports.', '', '', '', '', '', '', '', '']
17    \   },
18    \   {
19    \     'lnum': '15', 
20    \     'col': 0, 
21    \     'sub_type': 
22    \     'style',
23    \     'type': 'W',
24    \     'text': ['! There should be no method visibility in test methods.', 'There should be no method visibility in test methods.', '', '', '', '', '', '', '', '']
25    \   },
26    \ ],
27    \ ale_linters#php#tlint#Handle(347, [
28    \   "Lints for /Users/jose/Code/Tighten/tester/tests/Unit/ExampleTest.php",
29    \   "============",
30    \   "! There should be no unused imports.",
31    \   "5 : `use Illuminate\Foundation\Testing\RefreshDatabase;`",
32    \   "! There should be no method visibility in test methods.",
33    \   "15 : `    public function testBasicTest()`",
34    \ ])