diff options
author | w0rp <w0rp@users.noreply.github.com> | 2020-11-21 16:18:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 16:18:20 +0000 |
commit | e4bfcb44b3ddc9fab7eb713fa0ddcf45d0ab7b3a (patch) | |
tree | 2565e6fec7f3d4ba8cc66717a243e67373babb01 /test/command_callback | |
parent | edd96f44148ec1877cf031417eab764a266ed32b (diff) | |
parent | f8351c1b22d02f194235388779ad47028d5e7a25 (diff) | |
download | ale-e4bfcb44b3ddc9fab7eb713fa0ddcf45d0ab7b3a.zip |
Merge pull request #3357 from creativenull/feat-php-intelephense
feat: add intelephense support for php
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/php-intelephense-project/with-composer/composer.json | 0 | ||||
-rw-r--r-- | test/command_callback/test_php_intelephense_command_callback.vader | 26 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/command_callback/php-intelephense-project/with-composer/composer.json b/test/command_callback/php-intelephense-project/with-composer/composer.json new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/command_callback/php-intelephense-project/with-composer/composer.json diff --git a/test/command_callback/test_php_intelephense_command_callback.vader b/test/command_callback/test_php_intelephense_command_callback.vader new file mode 100644 index 00000000..dd6adb3d --- /dev/null +++ b/test/command_callback/test_php_intelephense_command_callback.vader @@ -0,0 +1,26 @@ +Before: + call ale#assert#SetUpLinterTest('php', 'intelephense') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + AssertLinter 'intelephense', + \ ale#Escape('intelephense') . ' --stdio' + +Execute(The project path should be correct for .git directories): + call ale#test#SetFilename('php-intelephense-project/with-git/test.php') + silent! call mkdir('php-intelephense-project/with-git/.git', 'p') + + AssertLSPProject ale#path#Simplify(g:dir . '/php-intelephense-project/with-git') + +Execute(The project path should be correct for composer.json file): + call ale#test#SetFilename('php-intelephense-project/with-composer/test.php') + + AssertLSPProject ale#path#Simplify(g:dir . '/php-intelephense-project/with-composer') + +Execute(The project cache should be saved in a temp dir): + call ale#test#SetFilename('php-intelephense-project/with-composer/test.php') + let g:ale_php_intelephense_config = { 'storagePath': '/tmp/intelephense' } + + AssertLSPProject ale#path#Simplify(g:dir . '/php-intelephense-project/with-composer') |