Jakobo/snaptest — Issue #7: Mocking Namespaced Classes
Author: Jakobo
Created: 2011-11-01 07:14:47+00:00
State: open
Labels: Bug

The short bit here is that there's no easy way to handle mocking namespaced objects.

Hellge has a commit that touches on the issue:

https://github.com/Hellge/snaptest/commit/fa69f7d0d9f9d6ad6f8112567fb13c23629c9caa

However, in its current form it's a bit of a sledgehammer. This ticket tracks progress on making the solution a bit cleaner long term. If we can a cleaner way to do this, I'd prefer to go that route. Lacking that, having Mocks leave their original namespace isn't the end of the world and we can go with this code.