, I'm trying to write unit tests for my MATLAB code base. I've written a fair number of classes, and I have a number of them set up with unit tests using mlunit. Unfortunately, it's come time to try and test some of the the inner parts of my object graph, and to try to minimize the dependency of these tests on other objects, I want to mock out some of the objects.
Unfortunately, it appears the MATLAB does not support private classes. Ideally, I'd be able to write these classes into the same files as the tests I'm writing, since they're (by definition) going to be barebones. Has anybody else done this? If so, how did you do your mocks?