diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-11-04 10:13:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-04 10:13:44 +0000 |
commit | 6aab3fe20929e44401f56bd7fb28cb491a742c8c (patch) | |
tree | 3628b6f4b05dedb29a247ee8c6b2b79093427501 /test/command_callback/test_php_command_callback.vader | |
parent | 93180239b9f5bf3d22d28eea2fc7b6d6a3aca09f (diff) | |
parent | f34c089685d1437f523e9c947c06b402f12c4b95 (diff) | |
download | ale-6aab3fe20929e44401f56bd7fb28cb491a742c8c.zip |
Merge pull request #2044 from Steap/bug/1388
PHP linter: make the path to the executable configurable
Diffstat (limited to 'test/command_callback/test_php_command_callback.vader')
-rw-r--r-- | test/command_callback/test_php_command_callback.vader | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command_callback/test_php_command_callback.vader b/test/command_callback/test_php_command_callback.vader new file mode 100644 index 00000000..81e13f93 --- /dev/null +++ b/test/command_callback/test_php_command_callback.vader @@ -0,0 +1,14 @@ +Before: + call ale#assert#SetUpLinterTest('php', 'php') + let b:command_tail = ' -l -d error_reporting=E_ALL -d display_errors=1' + \ . ' -d log_errors=0 --' + +After: + call ale#assert#TearDownLinterTest() + +Execute(The executable should be configurable): + AssertLinter 'php', ale#Escape('php') . b:command_tail + + let b:ale_php_php_executable = '/path/to/php' + + AssertLinter '/path/to/php', ale#Escape('/path/to/php') . b:command_tail |