summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-05-12 21:32:57 +0100
committerGitHub <noreply@github.com>2019-05-12 21:32:57 +0100
commitaa047b5ba3f3e16d18c54a0afb94642dc7568f78 (patch)
treefb7ba331a32a8a33954cdcffb3a7d013cc6f09ed /test
parentbfc79bd2aafffc9b8590f9ffa68254243e3f808a (diff)
parent6b919e88befb5de245d10b74fb9c68034e0d50eb (diff)
downloadale-aa047b5ba3f3e16d18c54a0afb94642dc7568f78.zip
Merge pull request #2491 from mpesari/phpstan-autoload-option
Add phpstan autoload option
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_phpstan_command_callbacks.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command_callback/test_phpstan_command_callbacks.vader b/test/command_callback/test_phpstan_command_callbacks.vader
index 3714fc64..0216b281 100644
--- a/test/command_callback/test_phpstan_command_callbacks.vader
+++ b/test/command_callback/test_phpstan_command_callbacks.vader
@@ -64,3 +64,9 @@ Execute(Configuration file exists in current directory, but force phpstan config
\ ale#Escape('phpstan') . ' --version',
\ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat raw -c ' . ale#Escape('phpstan.custom.neon') . ' %s'
\ ]
+
+Execute(Autoload parameter is added to the command):
+ let g:ale_php_phpstan_autoload = 'autoload.php'
+
+ AssertLinter 'phpstan',
+ \ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat raw -a ' . ale#Escape('autoload.php') . ' -l ' . ale#Escape('4') . ' %s'