Mocking and dependency injection don't seem to be mutually exclusive, if anything dependency injection can make it easier to get the component you're testing to interface with the mock
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments