Add test to verify phpstan autoload parameter

This commit is contained in:
Mikko Pesari 2019-05-12 23:12:47 +03:00
parent afa20d96ca
commit 6b919e88be

View File

@ -64,3 +64,9 @@ Execute(Configuration file exists in current directory, but force phpstan config
\ ale#Escape('phpstan') . ' --version', \ ale#Escape('phpstan') . ' --version',
\ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat raw -c ' . ale#Escape('phpstan.custom.neon') . ' %s' \ 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'