diff options
author | Julien Deniau <julien.deniau@gmail.com> | 2019-05-02 00:14:39 +0200 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-05-01 23:14:39 +0100 |
commit | c6aae3bcfcba862028180ca6ff04242c309a767a (patch) | |
tree | b605e024363c3d57a1002ca05468db9f1e36f59d /test/handler/test_phpstan_handler.vader | |
parent | 4c6f67a3d02d12a7ce2f35cc3cbe2e166ae83b72 (diff) | |
download | ale-c6aae3bcfcba862028180ca6ff04242c309a767a.zip |
Better phpstan default configuration (#2444)
* Use phpstan config file as default whenever possible + report as error
Diffstat (limited to 'test/handler/test_phpstan_handler.vader')
-rw-r--r-- | test/handler/test_phpstan_handler.vader | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/handler/test_phpstan_handler.vader b/test/handler/test_phpstan_handler.vader index 207a7758..67fdb759 100644 --- a/test/handler/test_phpstan_handler.vader +++ b/test/handler/test_phpstan_handler.vader @@ -14,7 +14,7 @@ Execute(Output without errors should be parsed correctly): AssertEqual \ [], - \ ale_linters#php#phpstan#Handle(bufnr(''), [" 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%"]) + \ ale_linters#php#phpstan#Handle(bufnr(''), []) Execute(Output with some errors should be parsed correctly): call ale#test#SetFilename('phpstan-test-files/foo/test.php') @@ -24,21 +24,20 @@ Execute(Output with some errors should be parsed correctly): \ { \ 'lnum': 9, \ 'text': 'Call to method format() on an unknown class DateTimeImutable.', - \ 'type': 'W' + \ 'type': 'E' \ }, \ { \ 'lnum': 16, \ 'text': 'Sample message.', - \ 'type': 'W' + \ 'type': 'E' \ }, \ { \ 'lnum': 192, \ 'text': 'Invalid command testCommand.', - \ 'type': 'W' + \ 'type': 'E' \ } \ ], \ ale_linters#php#phpstan#Handle(bufnr(''), [ - \ ' 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%', \ 'phpstan-test-files/foo/test.php:9:Call to method format() on an unknown class DateTimeImutable.', \ 'phpstan-test-files/foo/test.php:16:Sample message.', \ 'phpstan-test-files/foo/test.php:192:Invalid command testCommand.', @@ -52,11 +51,10 @@ Execute(Output should be parsed correctly with Windows paths): \ { \ 'lnum': 9, \ 'text': 'Access to an undefined property Test::$var.', - \ 'type': 'W' + \ 'type': 'E' \ } \ ], \ ale_linters#php#phpstan#Handle(bufnr(''), [ - \ ' 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%', \ 'D:\phpstan-test-files\foo\test.php:9:Access to an undefined property Test::$var.', \]) @@ -68,10 +66,9 @@ Execute(Output for .inc files should be parsed correctly): \ { \ 'lnum': 9, \ 'text': 'Access to an undefined property Test::$var.', - \ 'type': 'W' + \ 'type': 'E' \ } \ ], \ ale_linters#php#phpstan#Handle(bufnr(''), [ - \ ' 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%', \ '/phpstan-test-files/foo/test.inc:9:Access to an undefined property Test::$var.', \]) |