I want to create a test double for an interface. The solution must satisfy ALL of the following requirements:
- MUST allow me to specify custom configurations for SOME methods of the interface
- MUST automatically stub all REMAINING methods with a default stub
- MUST NOT require me to explicitly list the remaining methods for which I want a default stub
- MUST NOT require me to use deprecated APIs like
setMethodsExcept([])
Is this currently achievable in a modern PHPUnit (8+), or is it the case that some of the above requirements must be relaxed?