Skip to:
As per TESTBOX-78, it would be nice to have something simple like:
getPrivateVariable( Obj , 'VarName' )
As an equivalent to this:
getMockBox().prepareMock( Obj ).$getProperty('VarName')
I can't see an edit option anywhere, but I forget to add that - whether the shorthand function is added or not - the ability to do this should be listed in the docs at http://wiki.coldbox.org/wiki/TestBox.cfm#Spies_.26_Mocking
As per TESTBOX-78, it would be nice to have something simple like:
getPrivateVariable( Obj , 'VarName' )
As an equivalent to this:
getMockBox().prepareMock( Obj ).$getProperty('VarName')