I'm using phpspec to test my zend 2 module and having issues with testing pass-by-reference. I've read other topics about this that state it's bad design if you are having to do this. I disagree that this a blanket statement.
I need to represent a two-way relationship between classes where two classes have references two each other.
Is there a way for me to get phpspec to test this or is there a better design I need to consider.