diff options
author | Daisuke Shimamoto <diskshima@gmail.com> | 2021-11-15 21:17:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 21:17:18 +0900 |
commit | 31dc6a61a07839ea906f6f0b80be713fb8cad1c7 (patch) | |
tree | 55a29590a736bf799a5df2ea5e6ec13aff4e9c51 /test | |
parent | 01fdd8d66b9ee949747ce53ad37bc65b5df4e084 (diff) | |
download | ale-31dc6a61a07839ea906f6f0b80be713fb8cad1c7.zip |
Find composer.json when searching for psalm (#3979)
* Look for nearest composer.json before .git
* Add test for projects with composer.json
Diffstat (limited to 'test')
-rw-r--r-- | test/linter/test_psalm.vader | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/linter/test_psalm.vader b/test/linter/test_psalm.vader index 4edb95c8..b79f2724 100644 --- a/test/linter/test_psalm.vader +++ b/test/linter/test_psalm.vader @@ -36,3 +36,8 @@ Execute(User provided options should be used): AssertLinter 'psalm', \ ale#Escape('psalm') \ . ' --language-server --my-user-provided-option my-value' + +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') |