summaryrefslogtreecommitdiff
path: root/test/command_callback/test_phpstan_command_callbacks.vader
diff options
context:
space:
mode:
authorlfree <xh.dreamlover@gmail.com>2018-11-23 17:39:50 +0800
committerw0rp <w0rp@users.noreply.github.com>2018-11-23 09:39:50 +0000
commit2ab64514d02576b929ce3e7123fc45b6a148891a (patch)
tree4b748060974ea4d1d7c282b4c64059d63deb57bc /test/command_callback/test_phpstan_command_callbacks.vader
parentff0bd14efe8ba55594afe5175f562254d5268689 (diff)
downloadale-2ab64514d02576b929ce3e7123fc45b6a148891a.zip
php: change phpstan's --errorFormat to --error-format (#2005)
* php: change phpstan's --errorFormat to --error-format * add version check to phpstan
Diffstat (limited to 'test/command_callback/test_phpstan_command_callbacks.vader')
-rw-r--r--test/command_callback/test_phpstan_command_callbacks.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/command_callback/test_phpstan_command_callbacks.vader b/test/command_callback/test_phpstan_command_callbacks.vader
index c7db587a..665661a3 100644
--- a/test/command_callback/test_phpstan_command_callbacks.vader
+++ b/test/command_callback/test_phpstan_command_callbacks.vader
@@ -1,6 +1,8 @@
Before:
call ale#assert#SetUpLinterTest('php', 'phpstan')
+ WithChainResults ['0.10.2']
+
After:
call ale#assert#TearDownLinterTest()
@@ -22,3 +24,11 @@ Execute(Custom phpstan configuration file):
AssertLinter 'phpstan',
\ ale#Escape('phpstan') . ' analyze -l4 --errorFormat raw -c phpstan_config %s'
+
+Execute(Choose the right format for error format param):
+ WithChainResults ['0.10.3']
+
+ AssertLinter 'phpstan', [
+ \ ale#Escape('phpstan') . ' --version',
+ \ ale#Escape('phpstan') . ' analyze -l4 --error-format raw %s'
+ \ ]