2022-03-15 08:01:46 +01:00
|
|
|
augroup sacFolder
|
|
|
|
autocmd!
|
|
|
|
autocmd BufEnter **/sac/**/Configuration/**/*.typoscript :setlocal tabstop=2 shiftwidth=2
|
2022-03-15 09:57:03 +01:00
|
|
|
autocmd BufEnter **/sac/**/*.xlf :setlocal noexpandtab
|
2022-03-29 13:51:59 +02:00
|
|
|
autocmd BufEnter **/sac/**/.git/COMMIT_EDITMSG let b:ale_gitcommit_gitlint_options = '-c T7.regex="\[.*\] \w+-\d+ .*"'
|
2023-02-20 09:12:43 +01:00
|
|
|
autocmd BufEnter **/sac/**/Unit/** execute "call SacSetupPhpUnitUnit()"
|
|
|
|
autocmd BufEnter **/sac/**/Functional/** execute "call SacSetupPhpUnitFunctional()"
|
2022-03-15 08:01:46 +01:00
|
|
|
augroup END
|
|
|
|
|
2023-02-20 09:12:43 +01:00
|
|
|
function! SacSetupPhpUnitUnit()
|
|
|
|
let g:test#php#phpunit#options = {
|
2023-05-11 07:48:30 +02:00
|
|
|
\ 'file': '--configuration phpunit.unit.xml.dist --testdox',
|
|
|
|
\ 'nearest': '--configuration phpunit.unit.xml.dist --testdox',
|
2023-02-20 09:12:43 +01:00
|
|
|
\}
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! SacSetupPhpUnitFunctional()
|
|
|
|
let g:test#php#phpunit#options = {
|
2023-05-11 07:48:30 +02:00
|
|
|
\ 'file': '--configuration phpunit.functional.xml.dist --testdox',
|
|
|
|
\ 'nearest': '--configuration phpunit.functional.xml.dist --testdox',
|
2023-02-20 09:12:43 +01:00
|
|
|
\}
|
|
|
|
endfunction
|