"Do not mock what you don't own" @sebastian at #t3dd24 👏
@andreaswo @sebastian saw this completely out of context from testing, I was thinking to myself: "surely you mean, do not mock what you do not understand?". I think that's good general advice, but also applicable to testing as well!

@wez @sebastian I rather think of it as "do not mock what you don't control", i.e. if you cannot be sure you see all the API and behaviour changes in the code, then don't mock it, because at some point the assumptions underlying your mock will break. And you probably won't notice until it's too late.

The quote resonated with me especially well since TYPO3 and its community have a history of using far too excessive mocking.