diff --git a/home/programs/neovim/configuration/ftdetect/folder_typo3.vim b/home/programs/neovim/configuration/ftdetect/folder_typo3.vim index 07082e9..6cc300a 100644 --- a/home/programs/neovim/configuration/ftdetect/folder_typo3.vim +++ b/home/programs/neovim/configuration/ftdetect/folder_typo3.vim @@ -1,6 +1,7 @@ augroup typo3Folder autocmd! - autocmd BufEnter **/stuff/typo3/**/Unit/** execute "call Typo3SetupPhpUnitUnit()" + autocmd BufEnter **/stuff/typo3/core/**/Unit/** execute "call Typo3SetupPhpUnitUnit()" + autocmd BufEnter **/stuff/typo3/core/**/Functional/** execute "call Typo3SetupPhpUnitFunctional()" augroup END function! Typo3SetupPhpUnitUnit() @@ -9,3 +10,10 @@ function! Typo3SetupPhpUnitUnit() \ 'nearest': '--configuration Build/phpunit/UnitTests.xml', \} endfunction + +function! Typo3SetupPhpUnitFunctional() + let g:test#php#phpunit#options = { + \ 'file': '--configuration Build/phpunit/FunctionalTests.xml', + \ 'nearest': '--configuration Build/phpunit/FunctionalTests.xml', + \} +endfunction