summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorRichard Marmorstein <twitchard@users.noreply.github.com>2018-09-27 11:48:47 -0400
committerw0rp <w0rp@users.noreply.github.com>2018-09-27 16:48:47 +0100
commit947360f714cac48cff1b3e1949b1b66b48be671e (patch)
tree75df21f7327ba0a376727f28cb2f7444d3cde391 /test/command_callback
parent58ceb21cbc10a05f376664da31c8d7621e6d3669 (diff)
downloadale-947360f714cac48cff1b3e1949b1b66b48be671e.zip
Add psalm linter for PHP (#1893)
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_psalm_command_callbacks.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command_callback/test_psalm_command_callbacks.vader b/test/command_callback/test_psalm_command_callbacks.vader
new file mode 100644
index 00000000..4c31b7b4
--- /dev/null
+++ b/test/command_callback/test_psalm_command_callbacks.vader
@@ -0,0 +1,12 @@
+Before:
+ call ale#assert#SetUpLinterTest('php', 'psalm')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(Custom executables should be used for the executable and command):
+ let g:ale_php_psalm_executable = 'psalm_test'
+
+ AssertLinter 'psalm_test',
+ \ ale#Escape('psalm_test') . ' --diff --output-format=emacs %s'
+