summaryrefslogtreecommitdiff
path: root/test/command_callback/test_phpstan_command_callbacks.vader
diff options
context:
space:
mode:
authorMikko Pesari <mikko@pesari.fi>2019-05-12 23:12:47 +0300
committerMikko Pesari <mikko@pesari.fi>2019-05-12 23:12:52 +0300
commit6b919e88befb5de245d10b74fb9c68034e0d50eb (patch)
treedfaaab1ac3ce618316da2761403afdbbe821293c /test/command_callback/test_phpstan_command_callbacks.vader
parentafa20d96ca532f08126f298d25a3aea2b1a94835 (diff)
downloadale-6b919e88befb5de245d10b74fb9c68034e0d50eb.zip
Add test to verify phpstan autoload parameter
Diffstat (limited to 'test/command_callback/test_phpstan_command_callbacks.vader')
-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'