From f34c089685d1437f523e9c947c06b402f12c4b95 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Thu, 1 Nov 2018 18:20:48 +0100 Subject: PHP linter: make the path to the executable configurable Fixes #1388 --- test/command_callback/test_php_command_callback.vader | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/command_callback/test_php_command_callback.vader (limited to 'test') 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 -- cgit v1.2.3