summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArie Oldman <arie.oldman@vhs7.tv>2021-11-18 14:54:10 +1100
committerGitHub <noreply@github.com>2021-11-18 12:54:10 +0900
commit3b8ff6536e6eb4b9af946e2028164e8966ec5458 (patch)
tree2a83e0663a948d7e00910afab90433d69e42e157 /test
parent31dc6a61a07839ea906f6f0b80be713fb8cad1c7 (diff)
downloadale-3b8ff6536e6eb4b9af946e2028164e8966ec5458.zip
Adds PHPActor Linter (LSP) (#3975)
* Adds phpactor lsp linter * Fixes missing comma * Adds tests for phpactor lsp linter * Adds note that this part is not my own work * Removes unused variable * Adds phpactor to supported tools list * Fixes doc sorting * Wraps phpactor in code tags
Diffstat (limited to 'test')
-rw-r--r--test/linter/test_phpactor.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/linter/test_phpactor.vader b/test/linter/test_phpactor.vader
new file mode 100644
index 00000000..8968bba1
--- /dev/null
+++ b/test/linter/test_phpactor.vader
@@ -0,0 +1,20 @@
+Before:
+ call ale#assert#SetUpLinterTest('php', 'phpactor')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default executable path should be correct):
+ AssertLinter 'phpactor',
+ \ ale#Escape('phpactor') . ' language-server'
+
+Execute(The project path should be correct for .git directories):
+ call ale#test#SetFilename('../test-files/php/with-git/test.php')
+ silent! call mkdir('../test-files/php/with-git/.git')
+
+ AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-git')
+
+Execute(The project path should be correct for composer.json file):
+ call ale#test#SetFilename('../test-files/php/with-composer/test.php')
+
+ AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-composer')