Mock: Move "when" handling to a separate function
Mock: Move "when" handling to a separate function

Currently, all Mock class logic is handled in the subsref method. Make
this method easier to understand by moving the "when" logic to a
separate function. This also has the positive side-effect of allowing
MATLAB to auto-complete 'when' when typing.

vperic/mmockito