summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-08-02 21:58:57 +0100
committerGitHub <noreply@github.com>2018-08-02 21:58:57 +0100
commit9ef266d050d698c3ed3be3456ce6a5da5755d5ef (patch)
tree6e3d82e5df785173b6f067ddfd4b32a75fb9cef6 /test
parent94270402cb5c28017061c383c40dff89008d0125 (diff)
parenta728f074f727ad9aac0d6947f7b81d26078c0fb6 (diff)
downloadale-9ef266d050d698c3ed3be3456ce6a5da5755d5ef.zip
Merge pull request #1770 from fredemmott/hack
Split Hack out from PHP, modernize
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_hackfmt_fixer_callback.vader14
-rw-r--r--test/hack_files/testfile.php0
2 files changed, 7 insertions, 7 deletions
diff --git a/test/fixers/test_hackfmt_fixer_callback.vader b/test/fixers/test_hackfmt_fixer_callback.vader
index ed78fc85..d294c15e 100644
--- a/test/fixers/test_hackfmt_fixer_callback.vader
+++ b/test/fixers/test_hackfmt_fixer_callback.vader
@@ -1,10 +1,10 @@
Before:
- Save g:ale_php_hackfmt_executable
- Save g:ale_php_hackfmt_options
+ Save g:ale_hack_hackfmt_executable
+ Save g:ale_hack_hackfmt_options
" Use an invalid global executable, so we don't match it.
- let g:ale_php_hackfmt_executable = 'xxxinvalid'
- let g:ale_php_hackfmt_options = ''
+ let g:ale_hack_hackfmt_executable = 'xxxinvalid'
+ let g:ale_hack_hackfmt_options = ''
call ale#test#SetDirectory('/testplugin/test/fixers')
@@ -14,7 +14,7 @@ After:
call ale#test#RestoreDirectory()
Execute(The hackfmt callback should return the correct default values):
- call ale#test#SetFilename('../hack_files/testfile.php')
+ call ale#test#SetFilename('../hack_files/testfile.hack')
AssertEqual
\ {
@@ -25,8 +25,8 @@ Execute(The hackfmt callback should return the correct default values):
\ ale#fixers#hackfmt#Fix(bufnr(''))
Execute(The hackfmt callback should include custom hackfmt options):
- let g:ale_php_hackfmt_options = "--some-option"
- call ale#test#SetFilename('../hack_files/testfile.php')
+ let g:ale_hack_hackfmt_options = "--some-option"
+ call ale#test#SetFilename('../hack_files/testfile.hack')
AssertEqual
\ {
diff --git a/test/hack_files/testfile.php b/test/hack_files/testfile.php
deleted file mode 100644
index e69de29b..00000000
--- a/test/hack_files/testfile.php
+++ /dev/null