Add a shorthand for getMockBox.prepareMock(Object).$getProperty('VarName')

Description

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')

Gliffy Diagrams

Activity

Show:

Peter BoughtonMarch 6, 2014 at 3:46 PM

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

Duplicate
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created March 6, 2014 at 3:43 PM
Updated May 8, 2014 at 11:19 PM
Resolved May 8, 2014 at 11:19 PM