diff --git a/home/programs/neovim/configuration/ftdetect/folder_typo3.vim b/home/programs/neovim/configuration/ftdetect/folder_typo3.vim index 6cc300a..c1292bb 100644 --- a/home/programs/neovim/configuration/ftdetect/folder_typo3.vim +++ b/home/programs/neovim/configuration/ftdetect/folder_typo3.vim @@ -17,3 +17,17 @@ function! Typo3SetupPhpUnitFunctional() \ 'nearest': '--configuration Build/phpunit/FunctionalTests.xml', \} endfunction + +augroup typo3TestingFrameworkFolder + autocmd! + autocmd BufEnter **/stuff/typo3/testing-framework/Tests/Unit/** execute "call Typo3TestingFrameworkSetupPhpUnitUnit()" +augroup END + +function! Typo3TestingFrameworkSetupPhpUnitUnit() + let g:test#php#phpunit#options = { + \ 'file': '--configuration Resources/Core/Build/UnitTests.xml', + \ 'nearest': '--configuration Resources/Core/Build/UnitTests.xml', + \} + + let g:test#php#phpunit#executable = '.Build/bin/phpunit' +endfunction diff --git a/projects/typo3/testing-framework-shell.nix b/projects/typo3/testing-framework-shell.nix new file mode 100644 index 0000000..23265ac Binary files /dev/null and b/projects/typo3/testing-framework-shell.nix differ