From 6b919e88befb5de245d10b74fb9c68034e0d50eb Mon Sep 17 00:00:00 2001 From: Mikko Pesari Date: Sun, 12 May 2019 23:12:47 +0300 Subject: [PATCH] Add test to verify phpstan autoload parameter --- test/command_callback/test_phpstan_command_callbacks.vader | 6 ++++++ 1 file changed, 6 insertions(+) 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'