Update phpunit options for reuter in neovim

This project now uses TYPO3 v10 and phpunit 9.5.x.
I now can use testdox :)
This commit is contained in:
Daniel Siepmann 2022-05-23 11:47:19 +02:00
parent 4f2549a29e
commit 10702e20f7
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -9,23 +9,15 @@ augroup END
" As long as we use older phpunit which does not provider proper testdox output
function! ReuterSetupPhpUnitUnit()
let g:test#php#phpunit#options = {
\ 'file': '',
\ 'nearest': '',
\ 'file': '--testdox --colors',
\ 'nearest': '--testdox --colors',
\}
endfunction
function! ReuterSetupPhpUnitFunctional()
" TYPO3 v8
let g:test#php#phpunit#options = {
\ 'file': '-c phpunit.functional.xml.dist --stop-on-error --stop-on-failure',
\ 'nearest': '-c phpunit.functional.xml.dist',
\}
" TYPO3 v10
let g:test#php#phpunit#options = {
\ 'file': '--stop-on-error --stop-on-failure --testdox',
\ 'nearest': '--testdox',
\ 'file': '--stop-on-error --stop-on-failure --testdox --colors',
\ 'nearest': '--testdox --colors',
\}
endfunction