summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-08-23 22:42:45 +0100
committerGitHub <noreply@github.com>2018-08-23 22:42:45 +0100
commit7c10249c521d1bb03a90f6ca7f84ecf9f08e62f7 (patch)
tree5c4612b21da7fc0e9fb819d4d040d9033987f4a0 /test/command_callback
parentc2f7b379ee475d295a23f4ebb3d271861bba9d98 (diff)
parentf82ab768333d677f692d6301230c55108bf66d40 (diff)
downloadale-7c10249c521d1bb03a90f6ca7f84ecf9f08e62f7.zip
Merge pull request #1820 from SuRaMoN/master
Added phpcs options support as described in #257
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_phpcs_command_callback.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command_callback/test_phpcs_command_callback.vader b/test/command_callback/test_phpcs_command_callback.vader
index 941a92d6..e5d2f449 100644
--- a/test/command_callback/test_phpcs_command_callback.vader
+++ b/test/command_callback/test_phpcs_command_callback.vader
@@ -27,3 +27,9 @@ Execute(Projects without local executables should use the global one):
AssertLinter 'phpcs',
\ ale#Escape('phpcs') . ' -s --report=emacs --stdin-path=%s'
+
+Execute(User provided options are used):
+ let g:ale_php_phpcs_options = '--my-user-provided-option my-value'
+
+ AssertLinter 'phpcs',
+ \ ale#Escape('phpcs') . ' -s --report=emacs --stdin-path=%s --my-user-provided-option my-value'