]> git.madduck.net Git - etc/vim.git/blob - test/linter/test_php_intelephense.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / linter / test_php_intelephense.vader
1 Before:
2   call ale#assert#SetUpLinterTest('php', 'intelephense')
3
4 After:
5   call ale#assert#TearDownLinterTest()
6
7 Execute(The default executable path should be correct):
8   AssertLinter 'intelephense',
9   \ ale#Escape('intelephense') . ' --stdio'
10
11 Execute(The project path should be correct for .git directories):
12   call ale#test#SetFilename('../test-files/php/with-git/test.php')
13   silent! call mkdir('../test-files/php/with-git/.git', 'p')
14
15   AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-git')
16
17 Execute(The project path should be correct for composer.json file):
18   call ale#test#SetFilename('../test-files/php/with-composer/test.php')
19
20   AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-composer')
21
22 Execute(The project cache should be saved in a temp dir):
23   call ale#test#SetFilename('../test-files/php/with-composer/test.php')
24   let g:ale_php_intelephense_config = { 'storagePath': '/tmp/intelephense' }
25
26   AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-composer')